mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-16 04:24:45 -07:00
Temporarily backport app updates from apps repo
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
#include "../picopass_i.h"
|
||||
#include <lib/toolbox/name_generator.h>
|
||||
#include <gui/modules/validators.h>
|
||||
#include <toolbox/path.h>
|
||||
|
||||
void picopass_scene_key_input_text_input_callback(void* context) {
|
||||
Picopass* picopass = context;
|
||||
|
||||
picopass->dev->dev_data.pacs.elite_kdf = true;
|
||||
memcpy(picopass->dev->dev_data.pacs.key, picopass->byte_input_store, RFAL_PICOPASS_BLOCK_LEN);
|
||||
memcpy(picopass->write_key_context.key_to_write, picopass->byte_input_store, PICOPASS_KEY_LEN);
|
||||
picopass->write_key_context.is_elite = true;
|
||||
view_dispatcher_send_custom_event(picopass->view_dispatcher, PicopassCustomEventByteInputDone);
|
||||
}
|
||||
|
||||
@@ -21,7 +22,7 @@ void picopass_scene_key_input_on_enter(void* context) {
|
||||
NULL,
|
||||
picopass,
|
||||
picopass->byte_input_store,
|
||||
RFAL_PICOPASS_BLOCK_LEN);
|
||||
PICOPASS_BLOCK_LEN);
|
||||
view_dispatcher_switch_to_view(picopass->view_dispatcher, PicopassViewByteInput);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user