heater: added support of inverted IMU heat controller output

This commit is contained in:
Kirill Shilov
2021-07-20 10:37:53 -04:00
committed by Daniel Agar
parent 205d4400eb
commit e13884410b
12 changed files with 14 additions and 2 deletions
+2 -2
View File
@@ -136,7 +136,7 @@ void Heater::heater_off()
#endif
#ifdef HEATER_GPIO
px4_arch_gpiowrite(GPIO_HEATER_OUTPUT, 0);
HEATER_OUTPUT_EN(false);
#endif
}
@@ -151,7 +151,7 @@ void Heater::heater_on()
#endif
#ifdef HEATER_GPIO
px4_arch_gpiowrite(GPIO_HEATER_OUTPUT, 1);
HEATER_OUTPUT_EN(true);
#endif
}