From 8a8de2cb6d850bf2252a52e11f8e3b1428e4a382 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 3 Aug 2016 09:28:54 +0200 Subject: [PATCH] FIX: 133853, If you have 3items in a array, don't start with index 4 or 3, mental note to self, stop coding when you are tired. --- client/cmdlfjablotron.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdlfjablotron.c b/client/cmdlfjablotron.c index cae1bc8c..4248920d 100644 --- a/client/cmdlfjablotron.c +++ b/client/cmdlfjablotron.c @@ -179,7 +179,7 @@ int CmdJablotronClone(const char *Cmd) { UsbCommand resp; UsbCommand c = {CMD_T55XX_WRITE_BLOCK, {0,0,0}}; - for (int i=3; i>=0; i--) { + for (uint8_t i = 2; i >= 0; --i) { c.arg[0] = blocks[i]; c.arg[1] = i; clearCommandBuffer(); -- 2.39.2