We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b59549a commit b8661f3Copy full SHA for b8661f3
lib/nfc/protocols/felica/felica_poller.c
@@ -437,7 +437,9 @@ NfcCommand felica_poller_state_handler_read_success(FelicaPoller* instance) {
437
if((!instance->auth.context.auth_status.internal ||
438
!instance->auth.context.auth_status.external) &&
439
instance->data->workflow_type == FelicaLite) {
440
- instance->data->blocks_read--;
+ if(instance->data->blocks_read != 0) {
441
+ instance->data->blocks_read--;
442
+ }
443
instance->felica_event.type = FelicaPollerEventTypeIncomplete;
444
} else {
445
memcpy(
0 commit comments