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

Fix legacy wakeup for PWM charging #845

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

corneliusclaussen
Copy link
Contributor

Describe your changes

Resuming charging after legacy wakeup sequence did not work since no allow_power_on(true) was sent to the BSP in this case. This PR fixes this issue.

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

@@ -372,6 +375,7 @@ void IECStateMachine::set_pwm_F() {

// The higher level state machine in Charger.cpp calls this to indicate it allows contactors to be switched on
void IECStateMachine::allow_power_on(bool value, types::evse_board_support::Reason reason) {
EVLOG_info << "Allow power on: " << value << " Reason: " << reason;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is that log message desired here or left over from debugging?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is desired

Copy link
Contributor

@SebaLukas SebaLukas left a comment

Choose a reason for hiding this comment

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

👍

Signed-off-by: Cornelius Claussen <[email protected]>
@corneliusclaussen corneliusclaussen merged commit a9a1bf8 into main Sep 5, 2024
11 checks passed
@corneliusclaussen corneliusclaussen deleted the bugfix/fix-legacy-wakeup branch September 5, 2024 10:24
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