Added G-CODE "PRUSA FAN" to report RPM of both fans

This commit is contained in:
michalprusa 2017-11-03 20:27:52 +01:00
parent d2c5f469f0
commit 967594edf0

View File

@ -1779,7 +1779,15 @@ void process_commands()
else if (code_seen("PRN")) { else if (code_seen("PRN")) {
MYSERIAL.println(status_number); MYSERIAL.println(status_number);
}else if (code_seen("fn")) { }else if (code_seen("FAN")) {
MYSERIAL.print("E0:");
MYSERIAL.print(60*fan_speed[0]);
MYSERIAL.println(" RPM");
MYSERIAL.print("PRN0:");
MYSERIAL.print(60*fan_speed[1]);
MYSERIAL.println(" RPM");
}else if (code_seen("fn")) {
if (farm_mode) { if (farm_mode) {
MYSERIAL.println(farm_no); MYSERIAL.println(farm_no);
} }