소스 검색

reset proto on each scan callback

Eric Betts 9 달 전
부모
커밋
da007f983f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scenes/passy_scene_read.c

+ 1 - 0
scenes/passy_scene_read.c

@@ -9,6 +9,7 @@ static PassyReader* passy_reader = NULL;
 void passy_scene_detect_scan_callback(NfcScannerEvent event, void* context) {
     furi_assert(context);
     Passy* passy = context;
+    passy->proto = NULL;
 
     // detect the type of protocol, either 4a/4b and then run the specific poller callback functions yada yada yada
     if(event.type == NfcScannerEventTypeDetected) {