mirror of
https://github.com/TomNisbet/TommyPROM.git
synced 2025-02-17 17:30:28 +00:00
rename next -> dump_next
This commit is contained in:
parent
eb1a8cad78
commit
e59459ff5b
@ -684,7 +684,6 @@ void setup()
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
char line[120];
|
char line[120];
|
||||||
uint32_t next = 0;
|
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
@ -700,6 +699,7 @@ void loop()
|
|||||||
uint32_t start = getHex32(pCursor);
|
uint32_t start = getHex32(pCursor);
|
||||||
uint32_t end = getHex32(pCursor);
|
uint32_t end = getHex32(pCursor);
|
||||||
uint32_t val = getHex32(pCursor);
|
uint32_t val = getHex32(pCursor);
|
||||||
|
static uint32_t dump_next = 0;
|
||||||
|
|
||||||
if ((cmd != CMD_LAST_STATUS) && (cmd != CMD_INVALID))
|
if ((cmd != CMD_LAST_STATUS) && (cmd != CMD_INVALID))
|
||||||
{
|
{
|
||||||
@ -726,8 +726,8 @@ void loop()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CMD_DUMP:
|
case CMD_DUMP:
|
||||||
start = if_unspec(start, next);
|
start = if_unspec(start, dump_next);
|
||||||
next = dumpBlock(start, if_unspec(end, start + 0xff));
|
dump_next = dumpBlock(start, if_unspec(end, start + 0xff));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CMD_ERASE:
|
case CMD_ERASE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user