mirror of https://github.com/rusefi/wideband.git
let's have gcc help us (#278)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
This commit is contained in:
parent
013a016a62
commit
1b1103952f
|
@ -189,7 +189,7 @@ INCDIR = $(CONFDIR) \
|
|||
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
|
||||
|
||||
# Define C++ warning options here.
|
||||
CPPWARN = -Wall -Wextra -Wundef
|
||||
CPPWARN = -Wall -Wextra -Wundef -Werror=switch
|
||||
|
||||
#
|
||||
# Project, target, sources and paths
|
||||
|
|
|
@ -246,6 +246,7 @@ float HeaterController::GetVoltageForState(float heaterEsr)
|
|||
// TODO: heater PID should operate on temperature, not ESR
|
||||
return 7.5f - heaterPid.GetOutput(heater->targetESR, heaterEsr);
|
||||
case HeaterState::Stopped:
|
||||
case HeaterState::NoHeaterSupply:
|
||||
// Something has gone wrong, turn off the heater.
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue