[FL-1104] Fix NFC crash and missing NfcMessageTypeDeviceNotFound event (#400)

* Remove asserts from platformProtectST25RComm, fix issue with concurrent access.
* NFC Worker: fix bug in nfc_worker_poll causing worker to skip sending ofNfcMessageTypeDeviceNotFound event
* Fix python linter: stick to old beta
This commit is contained in:
あく
2021-04-04 13:45:55 +03:00
committed by GitHub
parent 78ff0c9fca
commit 0c3a0a3312
3 changed files with 3 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ void nfc_worker_poll(NfcWorker* nfc_worker, uint8_t cycles) {
is_found |= nfc_worker_nfcf_poll(nfc_worker);
is_found |= nfc_worker_nfcv_poll(nfc_worker);
rfalFieldOff();
cycles--;
if(cycles > 0) cycles--;
if((!is_found) && (!cycles)) {
NfcMessage message;
message.type = NfcMessageTypeDeviceNotFound;