mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
mf desfire: change detect algorithm
This commit is contained in:
parent
bf97209c9b
commit
8f9fbc3a79
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue