mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 07:53:34 +08:00
Fix support for Cube Black Heater
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user