Kaynağa Gözat

New naming fixes part 1

thanks @Willy-JL !
MX 2 yıl önce
ebeveyn
işleme
5f5b592086
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4 2
      scenes/uhf_scene_save_name.c

+ 4 - 2
scenes/uhf_scene_save_name.c

@@ -1,5 +1,5 @@
 #include "../uhf_app_i.h"
 #include "../uhf_app_i.h"
-#include <lib/toolbox/random_name.h>
+#include <toolbox/name_generator.h>
 #include <gui/modules/validators.h>
 #include <gui/modules/validators.h>
 #include <toolbox/path.h>
 #include <toolbox/path.h>
 
 
@@ -14,7 +14,9 @@ void uhf_scene_save_name_on_enter(void* context) {
 
 
     // Setup view
     // Setup view
     TextInput* text_input = uhf_app->text_input;
     TextInput* text_input = uhf_app->text_input;
-    set_random_name(uhf_app->text_store, sizeof(uhf_app->text_store));
+
+    name_generator_make_auto(uhf_app->text_store, sizeof(uhf_app->text_store), "UHF");
+
     text_input_set_header_text(text_input, "Name the tag");
     text_input_set_header_text(text_input, "Name the tag");
     text_input_set_result_callback(
     text_input_set_result_callback(
         text_input,
         text_input,