AP_BoardConfig: check IOMCU is enabled when checking dshot

This commit is contained in:
Andy Piper 2023-05-24 21:44:24 +01:00 committed by Andrew Tridgell
parent 1b210f8ea9
commit 4c8b346512
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public:
static bool io_dshot(void) {
#if HAL_WITH_IO_MCU
return _singleton?_singleton->state.io_dshot.get():false;
return io_enabled() && _singleton?_singleton->state.io_dshot.get():false;
#else
return false;
#endif