]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fix return value for error.
authormarshmellow42 <marshmellowrf@gmail.com>
Fri, 31 Mar 2017 16:22:30 +0000 (12:22 -0400)
committermarshmellow42 <marshmellowrf@gmail.com>
Fri, 31 Mar 2017 16:22:30 +0000 (12:22 -0400)
client/cmdlfem4x.c

index 47b240c8c1dd5b7b32f2bcfed1f2fa7f33b65225..e5bea0683a4723dab9b51d333d3e7b860cf06520 100644 (file)
@@ -921,7 +921,7 @@ int EM4x05WriteWord(uint8_t addr, uint32_t data, uint32_t pwd, bool usePwd, bool
 
        if ( (addr > 15) ) {
                PrintAndLog("Address must be between 0 and 15");
-               return 1;
+               return -1;
        }
        if ( !usePwd ) {
                PrintAndLog("Writing address %d data %08X", addr, data);
Impressum, Datenschutz