Merge pull request #889 from mkbel/fix_PRUSA_RESET
Do not skip bootloader when initiating reset by farm PRUSA RESET comm…
This commit is contained in:
commit
eb3307e8fc
|
|
@ -3339,6 +3339,8 @@ void process_commands()
|
||||||
// careful!
|
// careful!
|
||||||
if (farm_mode) {
|
if (farm_mode) {
|
||||||
#ifdef WATCHDOG
|
#ifdef WATCHDOG
|
||||||
|
boot_app_magic = BOOT_APP_MAGIC;
|
||||||
|
boot_app_flags = BOOT_APP_FLG_RUN;
|
||||||
wdt_enable(WDTO_15MS);
|
wdt_enable(WDTO_15MS);
|
||||||
cli();
|
cli();
|
||||||
while(1);
|
while(1);
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
#define BOOT_APP_FLG_ERASE 0x01
|
#define BOOT_APP_FLG_ERASE 0x01
|
||||||
#define BOOT_APP_FLG_COPY 0x02
|
#define BOOT_APP_FLG_COPY 0x02
|
||||||
#define BOOT_APP_FLG_FLASH 0x04
|
#define BOOT_APP_FLG_FLASH 0x04
|
||||||
|
#define BOOT_APP_FLG_RUN 0x08
|
||||||
|
|
||||||
#define BOOT_APP_FLG_USER0 0x80
|
#define BOOT_APP_FLG_USER0 0x80
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue