From 6222b01fc2341d6d17ff9f6d6d5a6af002021ab1 Mon Sep 17 00:00:00 2001 From: zinongli <131403964+zinongli@users.noreply.github.com> Date: Sun, 28 Jul 2024 14:25:22 -0400 Subject: [PATCH] minot calculation debug --- .DS_Store | Bin 0 -> 6148 bytes examples/Tag_1.t5577 | 14 +++++++------- t5577_writer.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..36c1a88bfb4c4a763ce1a1cf1e3577ba2925af71 GIT binary patch literal 6148 zcmeHKO>fgc5S>j;>reqXfYb|;C9YKnv;iS5X-E$oxHJe3fI^(4sfFu}Vuv6_k#dIr zz+d3XFX6v%f;Y2UDYmKTsiJ6SwfpvC-j4ltG{%r;Lx9d@z#uQOj`28MWto}<(UgGANAN46int~J3 z47CxZ1@5;3_ZB!4q!^rm@FUWcV8&y#PV;Pax4_l4o@(MnII ze*VoroTn4}75g4e;wa4;jUTGA;a%I@^0)kL|6TV)&%0Sao2Bjk^bNOOY8{7X^?vv& z8qIsP+s|~8^`m4o6+$!|!R77iC>iQ`ThEeVD%`Fa@T-2cSKC=En$5;;u-DjM?gon| z4^iLWd$e3u{X6&WKRxPwh))y!8Sem7`09%BDy|!AQqtjLcbddH8DorjzN~~n5jm5%6;4yZ#ffOY6Q%rh`X^fk9%GHN0{M(SbJIo2_vj=>%jxV&F3%00<* zWw)Hqoy$JuJvuGNmEChuZZR(Jq;)QuSIX?}@wczkQ@e+C3OEHWLjnFi1jvjniz|cj z=|CY@0HB9%G1TR+KQQ19V9VmlAbMcRP=SW3>=i@Vn}afRjJK@+%Alc>lE|3HMppKQ zqU^;(1>#PsWzdyQ0jEG-feq8F@%evv{{25saxJHTQ{cZ+KzW^Rr;S&#XKU%@_^b_( s-y^fJ-^!p+P}t*GDtr|0Ad6uv;0my1ab*xaF!x75WN?L3;8GR%4f1E`JOBUy literal 0 HcmV?d00001 diff --git a/examples/Tag_1.t5577 b/examples/Tag_1.t5577 index d4fe9d71a8b..f8f3c1267fb 100644 --- a/examples/Tag_1.t5577 +++ b/examples/Tag_1.t5577 @@ -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 diff --git a/t5577_writer.c b/t5577_writer.c index a8c8f24558f..a43419b70db 100644 --- a/t5577_writer.c +++ b/t5577_writer.c @@ -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. @@ -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));