Prechádzať zdrojové kódy

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

WillyJL 7 mesiacov pred
rodič
commit
4a2ed7cfff

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

@@ -11,6 +11,7 @@
 🇦🇿
 🇨🇦
 🇮🇹
+🇪🇸
 
 (If it works for yours, submit a PR to add your country flag)
 

+ 1 - 0
passy/README.md

@@ -12,6 +12,7 @@
 🇦🇿
 🇨🇦
 🇮🇹
+🇪🇸
 
 (If it works for yours, submit a PR to add your country flag)
 

+ 5 - 0
passy/scenes/passy_scene_passport_number_input.c

@@ -43,6 +43,11 @@ bool passy_scene_passport_number_input_on_event(void* context, SceneManagerEvent
             }
             passy->text_store[len] = '\0';
 
+            // Capitalize the passport number
+            for(size_t i = 0; i < len; i++) {
+                passy->text_store[i] = toupper(passy->text_store[i]);
+            }
+
             strlcpy(passy->passport_number, passy->text_store, strlen(passy->text_store) + 1);
             scene_manager_next_scene(passy->scene_manager, PassySceneDoBInput);
             consumed = true;