Merge pull request #844 from mkbel/add_farm_PRUSA_RESET

Add PRUSA RESET command in farm mode.
This commit is contained in:
PavelSindler 2018-06-19 18:44:00 +02:00 committed by GitHub
commit 650d8cc643
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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