divert_update_state is called in the main loop each loop.
Sometimes charge take time to set as changing and divert_update_state is called agian doing a loop start / stop charge....
I think cold be better call to divert_update_state each 5 second to give enought time to change from waiting state to charging state when F1 command is sending from divert.ccp line 242 ( after send f1 could be sended FE from line 249 too quickly)
May be other solution could be wait 5 seconds after send F1 command before check if chargeStarted is true on line 249 of divert.ccp
divert_update_state is called in the main loop each loop.
Sometimes charge take time to set as changing and divert_update_state is called agian doing a loop start / stop charge....
I think cold be better call to divert_update_state each 5 second to give enought time to change from waiting state to charging state when F1 command is sending from divert.ccp line 242 ( after send f1 could be sended FE from line 249 too quickly)
May be other solution could be wait 5 seconds after send F1 command before check if chargeStarted is true on line 249 of divert.ccp
Best regards