From 51214e5d11bbd52699f90b2088275f0eed28c4b6 Mon Sep 17 00:00:00 2001 From: kliment Date: Tue, 3 May 2011 06:49:55 -0700 Subject: Make sure M190 does nothing if no heated bed present. Fix report format to match repsnapper expectations --- Tonokip_Firmware/Tonokip_Firmware.pde | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Tonokip_Firmware') diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde index 15014fc..0000035 100644 --- a/Tonokip_Firmware/Tonokip_Firmware.pde +++ b/Tonokip_Firmware/Tonokip_Firmware.pde @@ -722,18 +722,25 @@ inline void process_commands() } break; case 190: // M190 - Wait bed for heater to reach target. + #if TEMP_1_PIN>-1 if (code_seen('S')) target_bed_raw = temp2analog(code_value()); previous_millis_heater = millis(); while(current_bed_raw < target_bed_raw) { if( (millis()-previous_millis_heater) > 1000 ) //Print Temp Reading every 1 second while heating up. { - Serial.print("B:"); + tt=analog2temp(current_raw); + Serial.print("T:"); + Serial.println( tt ); + Serial.print("ok T:"); + Serial.print( tt ); + Serial.print(" B:"); Serial.println( analog2temp(current_bed_raw) ); previous_millis_heater = millis(); } manage_heater(); } - break; + #endif + break; case 106: //M106 Fan On if (code_seen('S')){ digitalWrite(FAN_PIN, HIGH); -- cgit v1.2.1