Skip to content

Commit

Permalink
minot calculation debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zinongli committed Jul 28, 2024
1 parent e0f9031 commit 6222b01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Binary file added .DS_Store
Binary file not shown.
14 changes: 7 additions & 7 deletions examples/Tag_1.t5577
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Number of User Blocks: 8

Raw Data:
Block 0: 00148100
Block 1: 00000000
Block 2: 00000000
Block 3: 00000000
Block 4: 00000000
Block 5: 00000000
Block 6: 00000000
Block 7: 00000000
Block 1: 1A2B3C4D
Block 2: 5678ABCD
Block 3: 12345678
Block 4: 87654321
Block 5: 12341234
Block 6: ABCDEFAB
Block 7: 78901234

4 changes: 2 additions & 2 deletions t5577_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


#define TAG "T5577 Writer"
#define MAX_REPEAT_WRITING_FRAMES 15
#define MAX_REPEAT_WRITING_FRAMES 10
#define ENDING_WRITING_ICON_FRAMES 5

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

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

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

Expand Down

0 comments on commit 6222b01

Please sign in to comment.