File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
lib/nfc/protocols/mf_ultralight Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -505,16 +505,14 @@ static NfcCommand mf_ultralight_poller_handler_read_pages(MfUltralightPoller* in
505
505
instance -> error = mf_ultralight_poller_read_page (instance , start_page , & data );
506
506
}
507
507
508
- const uint8_t read_cnt = instance -> data -> type == MfUltralightTypeMfulC ? 1 : 4 ;
509
508
if (instance -> error == MfUltralightErrorNone ) {
510
- for (size_t i = 0 ; i < read_cnt ; i ++ ) {
511
- if (start_page + i < instance -> pages_total ) {
512
- FURI_LOG_D (TAG , "Read page %d success" , start_page + i );
513
- instance -> data -> page [start_page + i ] = data .page [i ];
514
- instance -> pages_read ++ ;
515
- instance -> data -> pages_read = instance -> pages_read ;
516
- }
517
- }
509
+ if (start_page < instance -> pages_total ) {
510
+ FURI_LOG_D (TAG , "Read page %d success" , start_page );
511
+ instance -> data -> page [start_page ] = data .page [start_page ];
512
+ instance -> pages_read ++ ;
513
+ instance -> data -> pages_read = instance -> pages_read ;
514
+ }
515
+
518
516
if (instance -> pages_read == instance -> pages_total ) {
519
517
instance -> state = MfUltralightPollerStateReadCounters ;
520
518
}
You can’t perform that action at this time.
0 commit comments