remove random_name API call

This commit is contained in:
Derek Jamison
2023-09-13 22:03:29 -05:00
parent 7e8bdc0559
commit 88db25b8de
5 changed files with 18 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ void wiegand_instructions_scene_on_enter(void* context) {
15,
128,
40,
"Version 1.1\n"
"Version 1.2\n"
"Only use on devices you own!\n"
"Connect D0 (Green) to pin A4\n"
"Connect D1 (White) to pin A7\n"

View File

@@ -66,7 +66,20 @@ void wiegand_save(void* context) {
void wiegand_save_scene_on_enter(void* context) {
App* app = context;
text_input_reset(app->text_input);
set_random_name(app->file_name, WIEGAND_KEY_NAME_SIZE);
FuriHalRtcDateTime datetime;
furi_hal_rtc_get_datetime(&datetime);
snprintf(
app->file_name,
25,
"%02d%02d%02d_%02d%02d%02d",
datetime.year,
datetime.month,
datetime.day,
datetime.hour,
datetime.minute,
datetime.second);
// set_random_name(app->file_name, WIEGAND_KEY_NAME_SIZE);
text_input_set_header_text(app->text_input, "Name the key");
text_input_set_result_callback(

View File

@@ -1,5 +1,4 @@
#include "../wiegand.h"
#include <furi_hal.h>
FuriTimer* timer = NULL;