|
@@ -425,7 +425,7 @@ void manage_heater()
|
425
|
425
|
for(int e = 0; e < EXTRUDERS; e++)
|
426
|
426
|
{
|
427
|
427
|
|
428
|
|
- #ifdef THERMAL_RUNAWAY_PROTECTION_PERIOD && THERMAL_RUNAWAY_PROTECTION_PERIOD > 0
|
|
428
|
+#if defined (THERMAL_RUNAWAY_PROTECTION_PERIOD) && THERMAL_RUNAWAY_PROTECTION_PERIOD > 0
|
429
|
429
|
thermal_runaway_protection(&thermal_runaway_state_machine[e], &thermal_runaway_timer[e], current_temperature[e], target_temperature[e], e, THERMAL_RUNAWAY_PROTECTION_PERIOD, THERMAL_RUNAWAY_PROTECTION_HYSTERESIS);
|
430
|
430
|
#endif
|
431
|
431
|
|
|
@@ -725,7 +725,7 @@ static void updateTemperaturesFromRawValues()
|
725
|
725
|
#ifdef TEMP_SENSOR_1_AS_REDUNDANT
|
726
|
726
|
redundant_temperature = analog2temp(redundant_temperature_raw, 1);
|
727
|
727
|
#endif
|
728
|
|
- #ifdef FILAMENT_SENSOR && (FILWIDTH_PIN > -1) //check if a sensor is supported
|
|
728
|
+ #if defined (FILAMENT_SENSOR) && (FILWIDTH_PIN > -1) //check if a sensor is supported
|
729
|
729
|
filament_width_meas = analog2widthFil();
|
730
|
730
|
#endif
|
731
|
731
|
//Reset the watchdog after we know we have a temperature measurement.
|
|
@@ -983,7 +983,7 @@ void setWatch()
|
983
|
983
|
#endif
|
984
|
984
|
}
|
985
|
985
|
|
986
|
|
-#ifdef THERMAL_RUNAWAY_PROTECTION_PERIOD && THERMAL_RUNAWAY_PROTECTION_PERIOD > 0
|
|
986
|
+#if defined (THERMAL_RUNAWAY_PROTECTION_PERIOD) && THERMAL_RUNAWAY_PROTECTION_PERIOD > 0
|
987
|
987
|
void thermal_runaway_protection(int *state, unsigned long *timer, float temperature, float target_temperature, int heater_id, int period_seconds, int hysteresis_degc)
|
988
|
988
|
{
|
989
|
989
|
/*
|