Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Heater #157

wants to merge 1 commit into from

Conversation

rusefillc
Copy link
Contributor

No description provided.

@dron0gus
Copy link
Contributor

See comments at #140

SetFault(s.ch, Fault::SensorNoHeatSupply);
return HeaterState::NoHeaterSupply;
}
SetFault(s.ch, Fault::None);
Copy link
Owner

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?

Copy link
Contributor Author

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 :(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rusefillc
Copy link
Contributor Author

@mck1117 @dron0gus can you guys coordinate a plan to move this area forward? seems to be holding the rest of incremental merge process

if (batteryVoltage < HEATER_BATTETY_OFF_VOLTAGE)
{
SetFault(ch, Fault::SensorNoHeatSupply);
return HeaterState::NoHeaterSupply;
Copy link
Owner

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?

Copy link
Contributor Author

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?

Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants