summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-05-03 06:49:55 -0700
committerkliment <kliment.yanev@gmail.com>2011-05-03 06:49:55 -0700
commit51214e5d11bbd52699f90b2088275f0eed28c4b6 (patch)
tree286bfc20823ebcdc4f9ec198ecf8f72e3b583466
parentb629bbafab45337cb2a524d0bd50a97b28152419 (diff)
Make sure M190 does nothing if no heated bed present. Fix report format to match repsnapper expectations
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde11
1 files changed, 9 insertions, 2 deletions
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);