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.

This commit is contained in:
iceman1001 2016-08-03 09:28:54 +02:00
parent c23d2618ba
commit 8a8de2cb6d

View file

@ -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();