]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/hitag2.c
ADD: using @holiman's "ubs_poll_validate_length() function in some device-side...
[proxmark3-svn] / armsrc / hitag2.c
index 7998d491ee602284efd1ef71c00a06e2f1e2e12a..7cc6b96434667d95b91d6a0508040808b5f14c26 100644 (file)
@@ -765,7 +765,7 @@ void SnoopHitag(uint32_t type) {
        bSkip = true;
        tag_sof = 4;
        
-       while(!BUTTON_PRESS()) {
+       while(!BUTTON_PRESS() && !usb_poll_validate_length()) {
                // Watchdog hit
                WDT_HIT();
                
@@ -992,7 +992,7 @@ void SimulateHitagTag(bool tag_mem_supplied, byte_t* data) {
        // Enable and reset counter
        AT91C_BASE_TC1->TC_CCR = AT91C_TC_CLKEN | AT91C_TC_SWTRG;
        
-       while(!BUTTON_PRESS()) {
+       while(!BUTTON_PRESS() && !usb_poll_validate_length()) {
                // Watchdog hit
                WDT_HIT();
                
Impressum, Datenschutz