chg: 'hf legic sim' break sim by sending another cmd

This commit is contained in:
Chris 2018-09-09 11:29:11 +02:00
parent 4e42d11d15
commit ba9de80eeb

View file

@ -460,7 +460,7 @@ void LegicRfSimulate(uint8_t cardtype) {
LED_A_ON();
DbpString("Starting Legic emulator, press button to end");
while(!BUTTON_PRESS()) {
while (!BUTTON_PRESS() && !usb_poll_validate_length()) {
WDT_HIT();
// wait for carrier, restart after timeout