mirror of https://github.com/ArduPilot/ardupilot
AP_BoardConfig: control dshot availability with HAL_WITH_IO_MCU_DSHOT
correct parameter id for BRD_IO_DSHOT
This commit is contained in:
parent
c631b79dde
commit
2dd4f3f581
|
@ -359,14 +359,14 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] = {
|
|||
// index 27 used by SER4_RTSCTS
|
||||
|
||||
|
||||
#if HAL_WITH_IO_MCU
|
||||
#if HAL_WITH_IO_MCU_DSHOT
|
||||
// @Param: IO_DSHOT
|
||||
// @DisplayName: Load DShot FW on IO
|
||||
// @Description: This loads the DShot firmware on the IO co-processor
|
||||
// @Values: 0:StandardFW,1:DshotFW
|
||||
// @RebootRequired: True
|
||||
// @User: Advanced
|
||||
AP_GROUPINFO("IO_DSHOT", 25, AP_BoardConfig, state.io_dshot, 0),
|
||||
AP_GROUPINFO("IO_DSHOT", 28, AP_BoardConfig, state.io_dshot, 0),
|
||||
#endif
|
||||
AP_GROUPEND
|
||||
};
|
||||
|
|
|
@ -93,7 +93,7 @@ public:
|
|||
}
|
||||
|
||||
static bool io_dshot(void) {
|
||||
#if HAL_WITH_IO_MCU
|
||||
#if HAL_WITH_IO_MCU_DSHOT
|
||||
return io_enabled() && _singleton?_singleton->state.io_dshot.get():false;
|
||||
#else
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue