Skip to content

Commit 6222b01

Browse files
committed
minot calculation debug
1 parent e0f9031 commit 6222b01

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.DS_Store

6 KB
Binary file not shown.

examples/Tag_1.t5577

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Number of User Blocks: 8
66

77
Raw Data:
88
Block 0: 00148100
9-
Block 1: 00000000
10-
Block 2: 00000000
11-
Block 3: 00000000
12-
Block 4: 00000000
13-
Block 5: 00000000
14-
Block 6: 00000000
15-
Block 7: 00000000
9+
Block 1: 1A2B3C4D
10+
Block 2: 5678ABCD
11+
Block 3: 12345678
12+
Block 4: 87654321
13+
Block 5: 12341234
14+
Block 6: ABCDEFAB
15+
Block 7: 78901234
1616

t5577_writer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
#define TAG "T5577 Writer"
26-
#define MAX_REPEAT_WRITING_FRAMES 15
26+
#define MAX_REPEAT_WRITING_FRAMES 10
2727
#define ENDING_WRITING_ICON_FRAMES 5
2828

2929
// Change this to BACKLIGHT_AUTO if you don't want the backlight to be continuously on.
@@ -389,7 +389,7 @@ void t5577_writer_update_config_from_load(void* context) {
389389
}
390390
}
391391

392-
my_model->user_block_num = (my_model->content[0] >> LFRFID_T5577_MAXBLOCK_SHIFT) & 0x7;
392+
my_model->user_block_num = (my_model->content[0] >> LFRFID_T5577_MAXBLOCK_SHIFT) & 0xF;
393393

394394
memset(my_model->data_loaded, true, sizeof(my_model->data_loaded));
395395

0 commit comments

Comments
 (0)