Merge pull request #1319 from XPila/V3_5
Fix PFW651 - cannot upload MK3 languages with slic3r (firmware compil…
This commit is contained in:
commit
5f166374ab
@ -130,7 +130,7 @@ void optiboot_w25x20cl_enter()
|
|||||||
}
|
}
|
||||||
// Send the initial magic string.
|
// Send the initial magic string.
|
||||||
while (ptr != end)
|
while (ptr != end)
|
||||||
putch(pgm_read_byte_far(ptr ++));
|
putch(pgm_read_byte(ptr ++));
|
||||||
watchdogReset();
|
watchdogReset();
|
||||||
// Wait for one second until a magic string (constant entry_magic) is received
|
// Wait for one second until a magic string (constant entry_magic) is received
|
||||||
// from the serial line.
|
// from the serial line.
|
||||||
@ -145,7 +145,7 @@ void optiboot_w25x20cl_enter()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ch = UDR0;
|
ch = UDR0;
|
||||||
if (pgm_read_byte_far(ptr ++) != ch)
|
if (pgm_read_byte(ptr ++) != ch)
|
||||||
// Magic was not received correctly, continue with the application
|
// Magic was not received correctly, continue with the application
|
||||||
return;
|
return;
|
||||||
watchdogReset();
|
watchdogReset();
|
||||||
@ -153,7 +153,7 @@ void optiboot_w25x20cl_enter()
|
|||||||
// Send the cfm magic string.
|
// Send the cfm magic string.
|
||||||
ptr = entry_magic_cfm;
|
ptr = entry_magic_cfm;
|
||||||
while (ptr != end)
|
while (ptr != end)
|
||||||
putch(pgm_read_byte_far(ptr ++));
|
putch(pgm_read_byte(ptr ++));
|
||||||
}
|
}
|
||||||
|
|
||||||
spi_init();
|
spi_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user