From: marshmellow42 Date: Fri, 31 Mar 2017 16:22:30 +0000 (-0400) Subject: fix return value for error. X-Git-Tag: v3.0.0~19^2~1 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/51b614aa75073617fa7f56196c3eef3e2145c786?ds=sidebyside;hp=5249ff940f17a0ae619c178ea8648c112106e9ae fix return value for error. --- diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index 47b240c8..e5bea068 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -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);