Browse Source

Allow resetting when not in farm mode

Voinea Dragos 3 years ago
parent
commit
70d254a1fc
1 changed files with 7 additions and 9 deletions
  1. 7 9
      Firmware/Marlin_main.cpp

+ 7 - 9
Firmware/Marlin_main.cpp

@@ -3918,21 +3918,19 @@ void process_commands()
 			mmu_reset();
 		}
 		else if (code_seen("RESET")) { // PRUSA RESET
-            // careful!
-            if (farm_mode) {
 #ifdef WATCHDOG
 #if defined(W25X20CL) && defined(BOOTAPP)
-                boot_app_magic = BOOT_APP_MAGIC;
-                boot_app_flags = BOOT_APP_FLG_RUN;
+            boot_app_magic = BOOT_APP_MAGIC;
+            boot_app_flags = BOOT_APP_FLG_RUN;
 #endif //defined(W25X20CL) && defined(BOOTAPP)
-                softReset();
+            softReset();
 #else //WATCHDOG
+            // careful!
+            if (farm_mode)
                 asm volatile("jmp 0x3E000");
+            else
+                puts_P(PSTR("Not in farm mode."));
 #endif //WATCHDOG
-            }
-            else {
-                MYSERIAL.println("Not in farm mode.");
-            }
 		}else if (code_seen("fv")) { // PRUSA fv
         // get file version
         #ifdef SDSUPPORT