mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +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:
@@ -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->blocks_read--;
|
instance->data->workflow_type == FelicaLite) {
|
||||||
|
if(instance->data->blocks_read != 0) {
|
||||||
|
instance->data->blocks_read--;
|
||||||
|
}
|
||||||
instance->felica_event.type = FelicaPollerEventTypeIncomplete;
|
instance->felica_event.type = FelicaPollerEventTypeIncomplete;
|
||||||
} else {
|
} else {
|
||||||
memcpy(
|
memcpy(
|
||||||
|
|||||||
Reference in New Issue
Block a user