-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only modify charging state when car state is 'charging'
The previous code would always update the charging state when receiving a new car state. This could sometimes cause the charging state to be set to "Disconnected" even when the car was physically connected. Avoid this by only changing the charging state if the new received car state is "charging". Otherwise don't modify the charging state of the car. Hopefully this should lead to consistent behavior.
- Loading branch information
Showing
1 changed file
with
11 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters