From a8bdedaef6233bc718e362c7f3671374396120e4 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Fri, 11 Dec 2020 15:10:04 -0800 Subject: [PATCH] actually stop if overheated --- firmware/heater_control.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/heater_control.cpp b/firmware/heater_control.cpp index 6275603..c554063 100644 --- a/firmware/heater_control.cpp +++ b/firmware/heater_control.cpp @@ -63,6 +63,7 @@ static HeaterState GetNextState(HeaterState state, float sensorEsr) if (sensorEsr < HEATER_FAULT_ESR) { setFault(Fault::SensorOverheat); + return HeaterState::Stopped; } break;