hf mf chk. added interrupt of procedure by usb

This commit is contained in:
merlokk 2017-10-09 16:09:33 +03:00
commit f9b560a920
2 changed files with 2 additions and 1 deletions

View file

@ -1036,7 +1036,7 @@ void MifareChkKeys(uint16_t arg0, uint8_t arg1, uint8_t arg2, uint8_t *datain)
// }
// Allow button press / usb cmd to interrupt device
if (BUTTON_PRESS()) { // && !usb_poll_validate_length()
if (BUTTON_PRESS() && !usb_poll_validate_length()) {
Dbprintf("ChkKeys: Cancel operation. Exit...");
break;
}

View file

@ -17,6 +17,7 @@
#include "apps.h"
#include "util.h"
#include "string.h"
#include "usb_cdc.h"
#include "iso14443crc.h"
#include "iso14443a.h"