Fix CFM message end pointer
This commit is contained in:
parent
3922bf2877
commit
026145b78b
|
|
@ -165,6 +165,7 @@ uint8_t optiboot_w25x20cl_enter()
|
||||||
cbi(UCSR0B, RXCIE0); //disable the MarlinSerial0 interrupt
|
cbi(UCSR0B, RXCIE0); //disable the MarlinSerial0 interrupt
|
||||||
// Send the cfm magic string.
|
// Send the cfm magic string.
|
||||||
ptr = entry_magic_cfm;
|
ptr = entry_magic_cfm;
|
||||||
|
end = strlen_P(entry_magic_cfm) + ptr;
|
||||||
while (ptr != end)
|
while (ptr != end)
|
||||||
putch(pgm_read_byte(ptr ++));
|
putch(pgm_read_byte(ptr ++));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue