Browse Source

AP_BoardConfig: make sure heater is left off if disabled

gps-1.3.1
Iampete1 4 years ago committed by Andrew Tridgell
parent
commit
970d0ea2a3
  1. 5
      libraries/AP_BoardConfig/IMU_heater.cpp

5
libraries/AP_BoardConfig/IMU_heater.cpp

@ -35,7 +35,10 @@ void AP_BoardConfig::set_imu_temp(float current) @@ -35,7 +35,10 @@ void AP_BoardConfig::set_imu_temp(float current)
hal.util->set_imu_temp(current);
if (target == -1) {
// nothing to do
// nothing to do, make sure heater is left off
#if defined(HAL_HEATER_GPIO_PIN)
hal.gpio->write(HAL_HEATER_GPIO_PIN, false);
#endif
return;
}

Loading…
Cancel
Save