From 51b614aa75073617fa7f56196c3eef3e2145c786 Mon Sep 17 00:00:00 2001 From: marshmellow42 Date: Fri, 31 Mar 2017 12:22:30 -0400 Subject: [PATCH] fix return value for error. --- client/cmdlfem4x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5