mirror of https://github.com/ArduPilot/ardupilot
AP_BoardConfig: check IOMCU is enabled when checking dshot
This commit is contained in:
parent
1b210f8ea9
commit
4c8b346512
|
@ -94,7 +94,7 @@ public:
|
||||||
|
|
||||||
static bool io_dshot(void) {
|
static bool io_dshot(void) {
|
||||||
#if HAL_WITH_IO_MCU
|
#if HAL_WITH_IO_MCU
|
||||||
return _singleton?_singleton->state.io_dshot.get():false;
|
return io_enabled() && _singleton?_singleton->state.io_dshot.get():false;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue