mf desfire: change detect algorithm

This commit is contained in:
gornekich 2024-03-07 18:48:14 +00:00
parent bf97209c9b
commit 8f9fbc3a79

View file

@ -225,8 +225,8 @@ static bool mf_desfire_poller_detect(NfcGenericEvent event, void* context) {
bool protocol_detected = false;
if(iso14443_4a_event->type == Iso14443_4aPollerEventTypeReady) {
MfDesfireVersion version = {};
const MfDesfireError error = mf_desfire_poller_read_version(instance, &version);
MfDesfireKeySettings key_settings = {};
MfDesfireError error = mf_desfire_poller_read_key_settings(instance, &key_settings);
protocol_detected = (error == MfDesfireErrorNone);
}