-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heater #157
base: master
Are you sure you want to change the base?
Heater #157
Conversation
See comments at #140 |
firmware/heater_control.cpp
Outdated
SetFault(s.ch, Fault::SensorNoHeatSupply); | ||
return HeaterState::NoHeaterSupply; | ||
} | ||
SetFault(s.ch, Fault::None); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really want to clear fault in case of heater not allowed? what if you cycle the ignition on, sensor has fault, you turn ignition off, then fault has disappeared?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds like unit tests are needed :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (batteryVoltage < HEATER_BATTETY_OFF_VOLTAGE) | ||
{ | ||
SetFault(ch, Fault::SensorNoHeatSupply); | ||
return HeaterState::NoHeaterSupply; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code is unreachable because of line 51, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dron0gus I've just rebased this old PR but do we still need it at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This maybe gets replaced by #292 with the addition of the SetFault(...)
call near line 51
No description provided.