fix return value for error.

This commit is contained in:
marshmellow42 2017-03-31 12:22:30 -04:00
commit 51b614aa75

View 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);