|
|
@@ -313,6 +313,7 @@ static NfcCommand suica_poller_callback(NfcGenericEvent event, void* context) {
|
|
|
rx_resp->SF2 = 0;
|
|
|
uint8_t blocks[1] = {0x00};
|
|
|
FelicaPoller* felica_poller = event.instance;
|
|
|
+ const FelicaData* felica_data = nfc_poller_get_data(app->poller);
|
|
|
FURI_LOG_I(TAG, "Poller set");
|
|
|
if(felica_event->type == FelicaPollerEventTypeRequestAuthContext) {
|
|
|
view_dispatcher_send_custom_event(app->view_dispatcher, MetroflipCustomEventCardDetected);
|
|
|
@@ -370,9 +371,9 @@ static NfcCommand suica_poller_callback(NfcGenericEvent event, void* context) {
|
|
|
"\e#Suica\nSorry, no data found.\nPlease let the developers know and we will add support.");
|
|
|
}
|
|
|
|
|
|
- // if(model->size == 1 && felica_poller->data->pmm.data[1] != SUICA_IC_TYPE_CODE) {
|
|
|
- // furi_string_printf(parsed_data, "\e#Suica\nSorry, not a Suica.\n");
|
|
|
- // }
|
|
|
+ if(model->size == 1 && felica_data->pmm.data[1] != SUICA_IC_TYPE_CODE) {
|
|
|
+ furi_string_printf(parsed_data, "\e#Suica\nSorry, not a Suica.\n");
|
|
|
+ }
|
|
|
widget_add_text_scroll_element(
|
|
|
widget, 0, 0, 128, 64, furi_string_get_cstr(parsed_data));
|
|
|
|