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
dshot
gps
#heater
heater
#imu # all available imu drivers
imu/analog_devices/adis16448
imu/l3gd20
+1 -1
View File
@@ -48,7 +48,7 @@
#include <drivers/drv_hrt.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
// Use ioctl calls to IO driver to turn heater on/off
# define HEATER_PX4IO
+2 -2
View File
@@ -129,8 +129,8 @@ private:
static struct work_s _work;
/** File descriptor for PX4IO for heater ioctl's */
#if defined(HEATER_PX4IO)
int _io_fd_ {-1};
#if defined(PX4IO_HEATER_ENABLED)
int _io_fd {-1};
#endif
bool _heater_on = false;