From 32165dedb053b906963ac6f36ffe503c1c6d04ee Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 15 Jun 2018 17:07:44 +0200 Subject: [PATCH] Add PRUSA RESET command in farm mode. --- Firmware/Marlin_main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index e984f821..dd969168 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -3259,6 +3259,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