From 4c95c16e5405b4039d33d4b585a9e5bf00815ecb Mon Sep 17 00:00:00 2001 From: tharexde Date: Thu, 29 Oct 2020 00:23:14 +0100 Subject: [PATCH] address has to be inserted twice, otherwise loop from for -> lwr fails, since lwr is 0 --- client/src/cmdlfem4x50.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdlfem4x50.c b/client/src/cmdlfem4x50.c index 9d46fe6b8..879ad0991 100644 --- a/client/src/cmdlfem4x50.c +++ b/client/src/cmdlfem4x50.c @@ -314,7 +314,7 @@ bool detect_4x50_block(void) { em4x50_data_t etd = { .pwd_given = false, .addr_given = true, - .addresses = EM4X50_DEVICE_ID, + .addresses = (EM4X50_DEVICE_ID << 8) | EM4X50_DEVICE_ID, }; em4x50_word_t words[EM4X50_NO_WORDS]; return (em4x50_read(&etd, words) == PM3_SUCCESS);