add a software reset GCODE

This commit is contained in:
Andre Sklenar 2017-08-25 14:21:11 +02:00
parent 9753446e2e
commit 436a79aa8d
1 changed files with 10 additions and 3 deletions

View File

@ -2096,11 +2096,18 @@ void process_commands()
PingTime = millis();
//MYSERIAL.print(farm_no); MYSERIAL.println(": OK");
}
}
else if (code_seen("PRN")) {
} else if (code_seen("PRN")) {
MYSERIAL.println(status_number);
}else if (code_seen("fn")) {
} else if (code_seen("RESET")) {
// careful!
if (farm_mode) {
asm volatile(" jmp 0x3E000");
}
else {
MYSERIAL.println("Not in farm mode.");
}
} else if (code_seen("fn")) {
if (farm_mode) {
MYSERIAL.println(farm_no);
}