From 777497bc8a40511beb5c521c0e57bd823d4523e8 Mon Sep 17 00:00:00 2001 From: cfranhonda <46506059+cfranhonda@users.noreply.github.com> Date: Mon, 1 Jun 2020 18:43:58 -0700 Subject: [PATCH] 1 hour turn off --- selfdrive/boardd/boardd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/boardd/boardd.cc b/selfdrive/boardd/boardd.cc index ad6363440faf42..46e3d732a3572a 100644 --- a/selfdrive/boardd/boardd.cc +++ b/selfdrive/boardd/boardd.cc @@ -61,7 +61,7 @@ bool fake_send = false; bool loopback_can = false; cereal::HealthData::HwType hw_type = cereal::HealthData::HwType::UNKNOWN; bool is_pigeon = false; -const uint32_t NO_IGNITION_CNT_MAX = 2 * 60 * 60 * 30; // turn off charge after 30 hrs +const uint32_t NO_IGNITION_CNT_MAX = 2 * 60 * 60 * 1.0; // turn off charge after 1 hour const float VBATT_START_CHARGING = 11.5; const float VBATT_PAUSE_CHARGING = 11.0; float voltage_f = 12.5; // filtered voltage