From b13f6b428820bef02cc92b958ea59092c30a3760 Mon Sep 17 00:00:00 2001 From: robbederks Date: Mon, 22 Feb 2021 15:46:22 +0100 Subject: [PATCH] also shutdown on tici (#20130) old-commit-hash: 35b43d2084e78724a4faff60ad91e84a361e630c --- selfdrive/boardd/boardd.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/boardd/boardd.cc b/selfdrive/boardd/boardd.cc index ba0ba0257..5b82b023b 100644 --- a/selfdrive/boardd/boardd.cc +++ b/selfdrive/boardd/boardd.cc @@ -396,7 +396,7 @@ void hardware_control_thread() { uint16_t prev_fan_speed = 999; uint16_t ir_pwr = 0; uint16_t prev_ir_pwr = 999; -#ifdef QCOM +#if defined(QCOM) || defined(QCOM2) bool prev_charging_disabled = false; #endif unsigned int cnt = 0; @@ -405,7 +405,7 @@ void hardware_control_thread() { cnt++; sm.update(1000); // TODO: what happens if EINTR is sent while in sm.update? -#ifdef QCOM +#if defined(QCOM) || defined(QCOM2) if (sm.updated("deviceState")){ // Charging mode bool charging_disabled = sm["deviceState"].getDeviceState().getChargingDisabled();