Skip to content

Commit

Permalink
Add MINTEMP/MAXTEMP error to LCD, and fix temperature bug with more t…
Browse files Browse the repository at this point in the history
…hen 1 extruder.
  • Loading branch information
daid committed Dec 10, 2012
1 parent 82c8724 commit 3fb07d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Marlin/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ void max_temp_error(uint8_t e) {
SERIAL_ERROR_START;
SERIAL_ERRORLN((int)e);
SERIAL_ERRORLNPGM(": Extruder switched off. MAXTEMP triggered !");
LCD_ALERTMESSAGEPGM("Err: MAXTEMP");
}
#ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
Stop();
Expand All @@ -814,6 +815,7 @@ void min_temp_error(uint8_t e) {
SERIAL_ERROR_START;
SERIAL_ERRORLN((int)e);
SERIAL_ERRORLNPGM(": Extruder switched off. MINTEMP triggered !");
LCD_ALERTMESSAGEPGM("Err: MINTEMP");
}
#ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
Stop();
Expand All @@ -827,6 +829,7 @@ void bed_max_temp_error(void) {
if(IsStopped() == false) {
SERIAL_ERROR_START;
SERIAL_ERRORLNPGM("Temperature heated bed switched off. MAXTEMP triggered !!");
LCD_ALERTMESSAGEPGM("Err: MAXTEMP BED");
}
#ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
Stop();
Expand Down Expand Up @@ -1034,10 +1037,10 @@ ISR(TIMER0_COMPB_vect)
{
current_temperature_raw[0] = raw_temp_0_value;
#if EXTRUDERS > 1
current_temperature_raw[1] = raw_temp_0_value;
current_temperature_raw[1] = raw_temp_1_value;
#endif
#if EXTRUDERS > 2
current_temperature_raw[2] = raw_temp_0_value;
current_temperature_raw[2] = raw_temp_2_value;
#endif
}

Expand Down

0 comments on commit 3fb07d9

Please sign in to comment.