mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
fix return value for error.
This commit is contained in:
parent
5249ff940f
commit
51b614aa75
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue