Fix support for Cube Black Heater

This commit is contained in:
alexklimaj
2021-04-06 15:14:00 -06:00
committed by Daniel Agar
parent 9b7eae4043
commit 0c3e64a7f5
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ px4_add_board(
distance_sensor # all available distance sensor drivers distance_sensor # all available distance sensor drivers
dshot dshot
gps gps
#heater heater
#imu # all available imu drivers #imu # all available imu drivers
imu/analog_devices/adis16448 imu/analog_devices/adis16448
imu/l3gd20 imu/l3gd20
+1 -1
View File
@@ -48,7 +48,7 @@
#include <drivers/drv_hrt.h> #include <drivers/drv_hrt.h>
#include <drivers/drv_io_heater.h> #include <drivers/drv_io_heater.h>
#if defined(BOARD_USES_PX4IO) and defined(PX4IO_HEATER_ENABLED) #if defined(BOARD_USES_PX4IO_VERSION) and defined(PX4IO_HEATER_ENABLED)
// Heater on some boards is on IO MCU // Heater on some boards is on IO MCU
// Use ioctl calls to IO driver to turn heater on/off // Use ioctl calls to IO driver to turn heater on/off
# define HEATER_PX4IO # define HEATER_PX4IO
+2 -2
View File
@@ -129,8 +129,8 @@ private:
static struct work_s _work; static struct work_s _work;
/** File descriptor for PX4IO for heater ioctl's */ /** File descriptor for PX4IO for heater ioctl's */
#if defined(HEATER_PX4IO) #if defined(PX4IO_HEATER_ENABLED)
int _io_fd_ {-1}; int _io_fd {-1};
#endif #endif
bool _heater_on = false; bool _heater_on = false;