Browse Source

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

daid303 12 years ago
parent
commit
3fb07d9b8d
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      Marlin/temperature.cpp

+ 5
- 2
Marlin/temperature.cpp View File

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

Loading…
Cancel
Save