Просмотр исходного кода

Merge pull request #8 from astro-cyberpaws/master

Update uhf_scene_save_name.c to work with the new name_generator.h
Abel Chaka 2 лет назад
Родитель
Сommit
c8e409d0c8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      scenes/uhf_scene_save_name.c

+ 2 - 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 <lib/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,7 @@ 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_random(uhf_app->text_store, sizeof(uhf_app->text_store));
     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,