Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelius Claussen <[email protected]>
  • Loading branch information
corneliusclaussen committed Oct 11, 2023
1 parent f1a1498 commit e396e87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions modules/EvseManager/IECStateMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ void IECStateMachine::feed_state_machine() {
}

if (timeout_state_c1.reached()) {
EVLOG_warning << "Timeout of 6 seconds reached, EV did not go back to state B after PWM was switch off. "

This comment has been minimized.

Copy link
@barsnick

barsnick Oct 11, 2023

Contributor

switch off -> switched off

"Power off under load.";
// We are still in state C, but the 6 seconds timeout has been reached. Now force power off under load.
call_allow_power_on_bsp(false);
}
Expand Down
1 change: 0 additions & 1 deletion modules/EvseManager/Timeout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ class AsyncTimeout {
if (!running)
return false;
if ((steady_clock::now() - start_time) > t) {
running = false;
return true;
} else {
return false;
Expand Down
8 changes: 2 additions & 6 deletions modules/simulation/JsYetiSimulator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,8 @@ function simulation_statemachine(mod) {
if (!mod.pwm_running) { // C1
// Table A.6 Sequence 10.2: EV does not stop drawing power even
// if PWM stops. Stop within 6 seconds (E.g. Kona1!)
// if (mod.last_pwm_running) FIXME implement 6 second timer!
// startTimer(6000);
// if (timerElapsed()) {
// force power off under load
powerOff(mod);
// }
// This is implemented in EvseManager
if (!mod.power_on_allowed) powerOff(mod);
} else { // C2
if (mod.power_on_allowed) {
// Table A.6: Sequence 4 EV ready to charge.
Expand Down

0 comments on commit e396e87

Please sign in to comment.