chiark / gitweb /
fixed catsting to (int)e in serial error messages.
authorBernhard <bkubicek@x201.(none)>
Sun, 22 Apr 2012 18:04:39 +0000 (20:04 +0200)
committerBernhard <bkubicek@x201.(none)>
Sun, 22 Apr 2012 18:04:39 +0000 (20:04 +0200)
see https://github.com/ErikZalm/Marlin/issues/148

Marlin/temperature.cpp

index a8ec619a20db915f6a8b5f2d9f180c0ffad6710e..2180f8003616cbe41249772797d3013be7a8faf5 100644 (file)
@@ -710,7 +710,7 @@ void max_temp_error(uint8_t e) {
   disable_heater();
   if(IsStopped() == false) {
     SERIAL_ERROR_START;
-    SERIAL_ERRORLN(e);
+    SERIAL_ERRORLN((int)e);
     SERIAL_ERRORLNPGM(": Extruder switched off. MAXTEMP triggered !");
   }
 }
@@ -719,7 +719,7 @@ void min_temp_error(uint8_t e) {
   disable_heater();
   if(IsStopped() == false) {
     SERIAL_ERROR_START;
-    SERIAL_ERRORLN(e);
+    SERIAL_ERRORLN((int)e);
     SERIAL_ERRORLNPGM(": Extruder switched off. MINTEMP triggered !");
   }
 }