瀏覽代碼

Merge pull request #844 from mkbel/add_farm_PRUSA_RESET

Add PRUSA RESET command in farm mode.
PavelSindler 6 年之前
父節點
當前提交
650d8cc643
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      Firmware/Marlin_main.cpp

+ 8 - 0
Firmware/Marlin_main.cpp

@@ -3270,6 +3270,14 @@ void process_commands()
 		}
 		else if (code_seen("thx")) {
 			no_response = false;
+        } else if (code_seen("RESET")) {
+            // careful!
+            if (farm_mode) {
+                asm volatile("  jmp 0x3E000");
+            }
+            else {
+                MYSERIAL.println("Not in farm mode.");
+            }
 		}else if (code_seen("fv")) {
         // get file version
         #ifdef SDSUPPORT