mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-17 04:34:44 -07:00
[FL-3639] Fix MF DESFire record file handling (#3167)
This commit is contained in:
@@ -29,6 +29,7 @@ extern "C" {
|
||||
#define MF_DESFIRE_UID_SIZE (7)
|
||||
#define MF_DESFIRE_BATCH_SIZE (5)
|
||||
#define MF_DESFIRE_APP_ID_SIZE (3)
|
||||
#define MF_DESFIRE_VALUE_SIZE (4)
|
||||
|
||||
typedef struct {
|
||||
uint8_t hw_vendor;
|
||||
|
||||
@@ -353,7 +353,7 @@ MfDesfireError mf_desfire_poller_async_read_file_records(
|
||||
furi_assert(instance);
|
||||
|
||||
bit_buffer_reset(instance->input_buffer);
|
||||
bit_buffer_append_byte(instance->input_buffer, MF_DESFIRE_CMD_READ_DATA);
|
||||
bit_buffer_append_byte(instance->input_buffer, MF_DESFIRE_CMD_READ_RECORDS);
|
||||
bit_buffer_append_byte(instance->input_buffer, id);
|
||||
bit_buffer_append_bytes(instance->input_buffer, (const uint8_t*)&offset, 3);
|
||||
bit_buffer_append_bytes(instance->input_buffer, (const uint8_t*)&size, 3);
|
||||
|
||||
Reference in New Issue
Block a user