瀏覽代碼

NFC Maker: Fix VCARD PRODID for OFW

Willy-JL 1 年之前
父節點
當前提交
c1f22ec23c
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      nfc_maker/scenes/nfc_maker_scene_save_generate.c

+ 9 - 1
nfc_maker/scenes/nfc_maker_scene_save_generate.c

@@ -30,7 +30,15 @@ size_t nfc_maker_scene_save_generate_populate_ndef_buffer(NfcMaker* app) {
 
 
         FuriString* vcard = furi_string_alloc_set("BEGIN:VCARD\r\nVERSION:3.0\r\n");
         FuriString* vcard = furi_string_alloc_set("BEGIN:VCARD\r\nVERSION:3.0\r\n");
         furi_string_cat_printf(
         furi_string_cat_printf(
-            vcard, "PRODID:-//MomentumFW//%s//EN\r\n", version_get_version(NULL));
+            vcard,
+            "PRODID:-//"
+#ifdef FW_ORIGIN_Momentum
+            "MomentumFW"
+#else
+            "FlipperZero",
+#endif
+            "//%s//EN\r\n",
+            version_get_version(NULL));
         furi_string_cat_printf(vcard, "N:%s;%s;;;\r\n", app->small_buf2, app->small_buf1);
         furi_string_cat_printf(vcard, "N:%s;%s;;;\r\n", app->small_buf2, app->small_buf1);
         furi_string_cat_printf(
         furi_string_cat_printf(
             vcard,
             vcard,