AP_BoardConfig: make sure heater is left off if disabled
This commit is contained in:
parent
b1028035bc
commit
970d0ea2a3
@ -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…
Reference in New Issue
Block a user