From 967594edf090672bc386879294c50ecd6f79b652 Mon Sep 17 00:00:00 2001 From: michalprusa Date: Fri, 3 Nov 2017 20:27:52 +0100 Subject: [PATCH] Added G-CODE "PRUSA FAN" to report RPM of both fans --- Firmware/Marlin_main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 30980c57..67573cba 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -1779,7 +1779,15 @@ void process_commands() else if (code_seen("PRN")) { 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) { MYSERIAL.println(farm_no); }