1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +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) {
FURI_LOG_D(TAG, "Read Success");
if(!instance->auth.context.auth_status.internal ||
!instance->auth.context.auth_status.external) {
if((!instance->auth.context.auth_status.internal ||
!instance->auth.context.auth_status.external) &&
instance->data->workflow_type == FelicaLite) {
if(instance->data->blocks_read != 0) {
instance->data->blocks_read--;
}
instance->felica_event.type = FelicaPollerEventTypeIncomplete;
} else {
memcpy(