ソースを参照

Merge passy from https://github.com/bettse/passy

Willy-JL 8 ヶ月 前
コミット
013ad98360

+ 2 - 0
passy/.catalog/README.md

@@ -4,6 +4,8 @@
 🇨🇱
 🇫🇷
 🇬🇧
+🇵🇭
+🇷🇺
 
 (If it works for yours, submit a PR to add your country flag)
 

+ 2 - 0
passy/.catalog/changelog.md

@@ -1,3 +1,5 @@
+## 1.3
+ - Show both issuing state and nationality (Thanks @portasynthinca3)
 ## 1.2
  - Fix bug with detecting wrong protocol
  - Fix bug with check number of alpha characters (Thanks @WillyJL)

+ 2 - 0
passy/README.md

@@ -5,6 +5,8 @@
 🇨🇱
 🇫🇷
 🇬🇧
+🇵🇭
+🇷🇺
 
 (If it works for yours, submit a PR to add your country flag)
 

+ 4 - 2
passy/scenes/passy_scene_read_success.c

@@ -84,7 +84,8 @@ void passy_scene_read_success_on_enter(void* context) {
                 char* row_1 = (char*)dg1->mrz.buf + 0;
                 char* row_2 = (char*)dg1->mrz.buf + 44;
 
-                furi_string_cat_printf(str, "Country: %.3s\n", row_1 + 2);
+                furi_string_cat_printf(str, "Issuing state: %.3s\n", row_1 + 2);
+                furi_string_cat_printf(str, "Nationality: %.3s\n", row_2 + 10);
                 furi_string_cat_printf(str, "Name: %s\n", name);
                 furi_string_cat_printf(str, "Doc Number: %.9s\n", row_2);
                 furi_string_cat_printf(str, "DoB: %.6s\n", row_2 + 13);
@@ -100,7 +101,8 @@ void passy_scene_read_success_on_enter(void* context) {
                 char* row_2 = (char*)dg1->mrz.buf + 30;
                 char* row_3 = (char*)dg1->mrz.buf + 60;
 
-                furi_string_cat_printf(str, "Country: %.3s\n", row_1 + 2);
+                furi_string_cat_printf(str, "Issuing state: %.3s\n", row_1 + 2);
+                furi_string_cat_printf(str, "Nationality: %.3s\n", row_2 + 15);
                 furi_string_cat_printf(str, "Name: %s\n", name);
                 furi_string_cat_printf(str, "Doc Number: %.9s\n", row_1 + 5);
                 furi_string_cat_printf(str, "DoB: %.6s\n", row_2);