I have a draft for a little issue I was encountering where the ECU CAN was not starting. It was possibly happening in a hot car?
It was compounded by the state going to ON despite it not actually starting.
I have moved the map loading into the ECU Task, and I retry turing the CAN on in the task until it starts or is killed.
I've also put some mutexes around the value map access. I was contemplating just moving the map reload into the thread, but then the dump still should be mutexed.
https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/1350
It still needs some more testing, but feedback wouldbe welcome.
//.