Compare commits

..

1 Commits

Author SHA1 Message Date
Stephen Crane
7f8ae81ff1
Merge c11354cdad into 4553fe100d 2024-04-11 08:28:40 +00:00

View File

@ -684,7 +684,9 @@ void setup()
**/
char line[120];
uint32_t next = 0;
uint32_t start = 0;
uint32_t end = 0xff;
uint32_t val = 0xff;
void loop()
{
@ -697,9 +699,9 @@ void loop()
Serial.println();
byte cmd = parseCommand(line[0]);
char * pCursor = line+1;
uint32_t start = getHex32(pCursor);
uint32_t end = getHex32(pCursor);
uint32_t val = getHex32(pCursor);
start = getHex32(pCursor, start);
end = getHex32(pCursor);
val = (byte) getHex32(pCursor);
if ((cmd != CMD_LAST_STATUS) && (cmd != CMD_INVALID))
{
@ -726,8 +728,7 @@ void loop()
break;
case CMD_DUMP:
start = if_unspec(start, next);
next = dumpBlock(start, if_unspec(end, start + 0xff));
start = dumpBlock(start, if_unspec(end, start + 0xff));
break;
case CMD_ERASE: