Skip to content

Commit

Permalink
Updated comment why there is a fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Lukas <[email protected]>
  • Loading branch information
SebaLukas committed Feb 28, 2025
1 parent 5b0e150 commit b5c3afd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/simulation/JsYetiSimulator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,10 @@ function simulation_statemachine(mod) {
// Table A.6: Sequence 1.1 Plug-in
if (mod.last_state === STATE_A) {
mod.simplified_mode = false;
reset_powermeter(mod); // Fix race condition
// Fix a race-condition between resetting powermeter parameters and reporting powermeter to the EvseManager back.
// The EvseManager reports in the transaction_finished event the total charged kWh.
// With resetting the powermeter too quickly, sometimes the EvseManager reports 0.00 kWh back.
reset_powermeter(mod);
}

break;
Expand Down

0 comments on commit b5c3afd

Please sign in to comment.