mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Dynamic default ibutton naming
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#define IBUTTON_APP_FILENAME_PREFIX "iBtn"
|
||||
#define IBUTTON_APP_FILENAME_EXTENSION ".ibtn"
|
||||
|
||||
#define IBUTTON_KEY_NAME_SIZE 22
|
||||
#define IBUTTON_KEY_NAME_SIZE 29
|
||||
|
||||
typedef enum {
|
||||
iButtonWriteModeInvalid,
|
||||
|
||||
@@ -18,7 +18,10 @@ void ibutton_scene_save_name_on_enter(void* context) {
|
||||
|
||||
if(is_new_file) {
|
||||
name_generator_make_auto(
|
||||
ibutton->key_name, IBUTTON_KEY_NAME_SIZE, IBUTTON_APP_FILENAME_PREFIX);
|
||||
ibutton->key_name,
|
||||
IBUTTON_KEY_NAME_SIZE,
|
||||
ibutton_protocols_get_name(
|
||||
ibutton->protocols, ibutton_key_get_protocol_id(ibutton->key)));
|
||||
}
|
||||
|
||||
text_input_set_header_text(text_input, "Name the key");
|
||||
|
||||
Reference in New Issue
Block a user