Przeglądaj źródła

fixed catsting to (int)e in serial error messages.

see https://github.com/ErikZalm/Marlin/issues/148
Bernhard 13 lat temu
rodzic
commit
33bb044d7c
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      Marlin/temperature.cpp

+ 2
- 2
Marlin/temperature.cpp Wyświetl plik

@@ -710,7 +710,7 @@ void max_temp_error(uint8_t e) {
710 710
   disable_heater();
711 711
   if(IsStopped() == false) {
712 712
     SERIAL_ERROR_START;
713
-    SERIAL_ERRORLN(e);
713
+    SERIAL_ERRORLN((int)e);
714 714
     SERIAL_ERRORLNPGM(": Extruder switched off. MAXTEMP triggered !");
715 715
   }
716 716
 }
@@ -719,7 +719,7 @@ void min_temp_error(uint8_t e) {
719 719
   disable_heater();
720 720
   if(IsStopped() == false) {
721 721
     SERIAL_ERROR_START;
722
-    SERIAL_ERRORLN(e);
722
+    SERIAL_ERRORLN((int)e);
723 723
     SERIAL_ERRORLNPGM(": Extruder switched off. MINTEMP triggered !");
724 724
   }
725 725
 }

Ładowanie…
Anuluj
Zapisz