Просмотр исходного кода

Add MINTEMP/MAXTEMP error to LCD, and fix temperature bug with more then 1 extruder.

daid303 12 лет назад
Родитель
Сommit
3fb07d9b8d
1 измененных файлов: 5 добавлений и 2 удалений
  1. 5
    2
      Marlin/temperature.cpp

+ 5
- 2
Marlin/temperature.cpp Просмотреть файл

@@ -802,6 +802,7 @@ void max_temp_error(uint8_t e) {
802 802
     SERIAL_ERROR_START;
803 803
     SERIAL_ERRORLN((int)e);
804 804
     SERIAL_ERRORLNPGM(": Extruder switched off. MAXTEMP triggered !");
805
+    LCD_ALERTMESSAGEPGM("Err: MAXTEMP");
805 806
   }
806 807
   #ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
807 808
   Stop();
@@ -814,6 +815,7 @@ void min_temp_error(uint8_t e) {
814 815
     SERIAL_ERROR_START;
815 816
     SERIAL_ERRORLN((int)e);
816 817
     SERIAL_ERRORLNPGM(": Extruder switched off. MINTEMP triggered !");
818
+    LCD_ALERTMESSAGEPGM("Err: MINTEMP");
817 819
   }
818 820
   #ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
819 821
   Stop();
@@ -827,6 +829,7 @@ void bed_max_temp_error(void) {
827 829
   if(IsStopped() == false) {
828 830
     SERIAL_ERROR_START;
829 831
     SERIAL_ERRORLNPGM("Temperature heated bed switched off. MAXTEMP triggered !!");
832
+    LCD_ALERTMESSAGEPGM("Err: MAXTEMP BED");
830 833
   }
831 834
   #ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
832 835
   Stop();
@@ -1034,10 +1037,10 @@ ISR(TIMER0_COMPB_vect)
1034 1037
     {
1035 1038
       current_temperature_raw[0] = raw_temp_0_value;
1036 1039
 #if EXTRUDERS > 1
1037
-      current_temperature_raw[1] = raw_temp_0_value;
1040
+      current_temperature_raw[1] = raw_temp_1_value;
1038 1041
 #endif
1039 1042
 #if EXTRUDERS > 2
1040
-      current_temperature_raw[2] = raw_temp_0_value;
1043
+      current_temperature_raw[2] = raw_temp_2_value;
1041 1044
 #endif
1042 1045
     }
1043 1046
     

Загрузка…
Отмена
Сохранить