also shutdown on tici (#20130)

pull/20134/head
robbederks 4 years ago committed by GitHub
parent 503f50d89c
commit 35b43d2084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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();

Loading…
Cancel
Save