remove random_name API call
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "../wiegand.h"
|
||||
#include <furi_hal.h>
|
||||
|
||||
FuriTimer* timer = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user