1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 12:51:22 +04:00

NFC FeliCa Minor Fix: FelicaPollerEventType should only be Incomplete if the tag is FeliCa Lite (#4279)

* poller read is only incomp if in Lite workflow

* another small fix for the "255/28 pages read" bug

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
This commit is contained in:
Zinong Li
2025-11-06 22:45:52 +04:00
committed by GitHub
parent 6d93a90a0a
commit a42e30f394

View File

@@ -486,9 +486,12 @@ NfcCommand felica_poller_state_handler_read_lite_blocks(FelicaPoller* instance)
NfcCommand felica_poller_state_handler_read_success(FelicaPoller* instance) { NfcCommand felica_poller_state_handler_read_success(FelicaPoller* instance) {
FURI_LOG_D(TAG, "Read Success"); FURI_LOG_D(TAG, "Read Success");
if(!instance->auth.context.auth_status.internal || if((!instance->auth.context.auth_status.internal ||
!instance->auth.context.auth_status.external) { !instance->auth.context.auth_status.external) &&
instance->data->workflow_type == FelicaLite) {
if(instance->data->blocks_read != 0) {
instance->data->blocks_read--; instance->data->blocks_read--;
}
instance->felica_event.type = FelicaPollerEventTypeIncomplete; instance->felica_event.type = FelicaPollerEventTypeIncomplete;
} else { } else {
memcpy( memcpy(