]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: the usb_poll_validate_length() check should be inversed, thanks @marshmellow42
authoriceman1001 <iceman@iuse.se>
Tue, 22 Dec 2015 15:14:03 +0000 (16:14 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 22 Dec 2015 15:14:03 +0000 (16:14 +0100)
armsrc/lfops.c

index 22173059fda70b2c5bf54820c6d513f6508c8c04..85931aa38e3b7cca58e3649402042205ecba293d 100644 (file)
@@ -400,7 +400,7 @@ void SimulateTagLowFrequency(int period, int gap, int ledcontrol)
        for(;;) {
                //wait until SSC_CLK goes HIGH
                while(!(AT91C_BASE_PIOA->PIO_PDSR & GPIO_SSC_CLK)) {
-                       if(BUTTON_PRESS() || !usb_poll_validate_length() ) {
+                       if(BUTTON_PRESS() || usb_poll_validate_length() ) {
                                DbpString("Stopped");
                                return;
                        }
@@ -417,7 +417,7 @@ void SimulateTagLowFrequency(int period, int gap, int ledcontrol)
                
                //wait until SSC_CLK goes LOW
                while(AT91C_BASE_PIOA->PIO_PDSR & GPIO_SSC_CLK) {
-                       if( BUTTON_PRESS() || !usb_poll_validate_length() ) {
+                       if( BUTTON_PRESS() || usb_poll_validate_length() ) {
                                DbpString("Stopped");
                                return;
                        }
Impressum, Datenschutz