]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
fix hid prox standalone bug 51/head
authormarshmellow42 <marshmellowrf@gmail.com>
Wed, 28 Jan 2015 17:55:04 +0000 (12:55 -0500)
committermarshmellow42 <marshmellowrf@gmail.com>
Wed, 28 Jan 2015 17:55:04 +0000 (12:55 -0500)
Fixed standalone bug by re-making the function return the hi and lo
values. (used only by samyrun function in appmain.c)

armsrc/lfops.c

index b703c3cdf96054e074ec9a0caef2c9d532f93a93..7b6fa97a71d51d73231d8251d8b9ff04b5c07be2 100644 (file)
@@ -706,6 +706,8 @@ void CmdHIDdemodFSK(int findone, int *high, int *low, int ledcontrol)
             }
             if (findone){
                 if (ledcontrol)        LED_A_OFF();
+                *high = hi;
+                *low = lo;
                 return;
             }
             // reset
@@ -753,6 +755,8 @@ void CmdEM410xdemod(int findone, int *high, int *low, int ledcontrol)
             }
             if (findone){
                 if (ledcontrol)        LED_A_OFF();
+                *high=lo>>32;
+                *low=lo & 0xFFFFFFFF;
                 return;
             }
         } else{
@@ -819,6 +823,8 @@ void CmdIOdemodFSK(int findone, int *high, int *low, int ledcontrol)
             if (findone){
                 if (ledcontrol)        LED_A_OFF();
                 //LED_A_OFF();
+                *high=code;
+                *low=code2;
                 return;
             }
             code=code2=0;
Impressum, Datenschutz