I tried to reduce the number of different condition tests for the state changes, in the context of charging_allowed() and
ended up with quite a few lines less in the code.
Please review my change of the AC-relay turn off condition in C1 and D1, in case of !available the behavior will change, i.e. the relay will turn off immediately instead of waiting for the timeout in C1 or D1. From my perspective this is valid, but please check.
Related issue (if applicable): fixes # (issue)
Checklist:
[X] The pull request is done against the latest master branch
[X] The code change compiles without warnings
[X] The code change are formatted (clang-format)
NOTE: The code change must pass CI. Your PR cannot be merged unless CI pass
I'll close this one, as the master branch has diverged quite a bit and [a45b97c] and [9e0c703] have found their way in the code already. Need to catch-up on the code again, too busy currently.
Description:
I tried to reduce the number of different condition tests for the state changes, in the context of charging_allowed() and ended up with quite a few lines less in the code. Please review my change of the AC-relay turn off condition in C1 and D1, in case of
!available
the behavior will change, i.e. the relay will turn off immediately instead of waiting for the timeout in C1 or D1. From my perspective this is valid, but please check.Related issue (if applicable): fixes # (issue)
Checklist:
NOTE: The code change must pass CI. Your PR cannot be merged unless CI pass