mirror of
https://github.com/TomNisbet/TommyPROM.git
synced 2024-06-12 10:29:30 +00:00
Compare commits
No commits in common. "eb1a8cad78ae788072812867fc023ab6a4f68eeb" and "c11354cdada79f641ab68e6aebdb5942947909ac" have entirely different histories.
eb1a8cad78
...
c11354cdad
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user