Merge remote-tracking branch 'upstream/dev' into emv-fixes

This commit is contained in:
Methodius
2024-02-15 00:37:24 +09:00
76 changed files with 823 additions and 1274 deletions

View File

@@ -1,11 +1,12 @@
#include "../nfc_app_i.h"
#include <nfc/helpers/nfc_util.h>
#include <bit_lib/bit_lib.h>
void nfc_scene_slix_key_input_byte_input_callback(void* context) {
NfcApp* instance = context;
SlixPassword password = nfc_util_bytes2num(instance->byte_input_store, sizeof(SlixPassword));
SlixPassword password =
bit_lib_bytes_to_num_be(instance->byte_input_store, sizeof(SlixPassword));
slix_unlock_set_password(instance->slix_unlock, password);
view_dispatcher_send_custom_event(instance->view_dispatcher, NfcCustomEventByteInputDone);
}