Tweak code formatting
This commit is contained in:
parent
88e88743b9
commit
3cb7128116
@ -1233,9 +1233,9 @@ void Temperature::manage_heater() {
|
|||||||
#ifndef MIN_COOLING_SLOPE_DEG_CHAMBER_VENT
|
#ifndef MIN_COOLING_SLOPE_DEG_CHAMBER_VENT
|
||||||
#define MIN_COOLING_SLOPE_DEG_CHAMBER_VENT 1.5
|
#define MIN_COOLING_SLOPE_DEG_CHAMBER_VENT 1.5
|
||||||
#endif
|
#endif
|
||||||
if( (temp_chamber.celsius - temp_chamber.target >= HIGH_EXCESS_HEAT_LIMIT) && !flag_chamber_excess_heat) {
|
if (!flag_chamber_excess_heat && temp_chamber.celsius - temp_chamber.target >= HIGH_EXCESS_HEAT_LIMIT) {
|
||||||
// open vent after MIN_COOLING_SLOPE_TIME_CHAMBER_VENT seconds
|
// Open vent after MIN_COOLING_SLOPE_TIME_CHAMBER_VENT seconds if the
|
||||||
// if the temperature did not drop at least MIN_COOLING_SLOPE_DEG_CHAMBER_VENT
|
// temperature didn't drop at least MIN_COOLING_SLOPE_DEG_CHAMBER_VENT
|
||||||
if (next_cool_check_ms_2 == 0 || ELAPSED(ms, next_cool_check_ms_2)) {
|
if (next_cool_check_ms_2 == 0 || ELAPSED(ms, next_cool_check_ms_2)) {
|
||||||
if (old_temp - temp_chamber.celsius < float(MIN_COOLING_SLOPE_DEG_CHAMBER_VENT)) flag_chamber_excess_heat = true; //the bed is heating the chamber too much
|
if (old_temp - temp_chamber.celsius < float(MIN_COOLING_SLOPE_DEG_CHAMBER_VENT)) flag_chamber_excess_heat = true; //the bed is heating the chamber too much
|
||||||
next_cool_check_ms_2 = ms + 1000UL * MIN_COOLING_SLOPE_TIME_CHAMBER_VENT;
|
next_cool_check_ms_2 = ms + 1000UL * MIN_COOLING_SLOPE_TIME_CHAMBER_VENT;
|
||||||
|
Loading…
Reference in New Issue
Block a user