Skip to content

Commit

Permalink
Vehicle: race condition fix for 12V shutdown logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dexterbg committed Sep 21, 2023
1 parent 1437482 commit d11d357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vehicle/OVMS.V3/components/vehicle/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ void OvmsVehicle::VehicleTicker1(std::string event, void* data)
}

// Check for shutdown level:
if (!MyBoot.IsShuttingDown())
if (!m_12v_shutdown_ticker && !MyBoot.IsShuttingDown())
{
float shutdown_threshold = MyConfig.GetParamValueFloat("vehicle", "12v.shutdown", 0);
if (shutdown_threshold > 0 && volt > 0 && volt <= shutdown_threshold)
Expand Down

0 comments on commit d11d357

Please sign in to comment.