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:
@@ -179,7 +179,7 @@ int CmdJablotronClone(const char *Cmd) {
|
|||||||
UsbCommand resp;
|
UsbCommand resp;
|
||||||
UsbCommand c = {CMD_T55XX_WRITE_BLOCK, {0,0,0}};
|
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[0] = blocks[i];
|
||||||
c.arg[1] = i;
|
c.arg[1] = i;
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
|
|||||||
Reference in New Issue
Block a user