check for HEATER_SANITY_CHECK before trying to use sanity checking variables

This commit is contained in:
Michael Moon 2010-11-20 13:10:44 +11:00
parent 4c7231aa8b
commit ad52220855
1 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,9 @@
#include "arduino.h"
#include "debug.h"
#ifndef EXTRUDER
#include "sersendf.h"
#endif
#define HEATER_C
#include "config.h"
@ -74,8 +76,10 @@ void heater_init() {
}
}
// 0 is a "sane" temperature when we're trying to cool down
heaters_runtime[i].sane_temperature = 0;
#ifdef HEATER_SANITY_CHECK
// 0 is a "sane" temperature when we're trying to cool down
heaters_runtime[i].sane_temperature = 0;
#endif
// read factors from eeprom
heaters_pid[i].p_factor = eeprom_read_dword((uint32_t *) &EE_factors[i].EE_p_factor);