mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
AP_BoardConfig: allow for non-bool BRD_IO_ENABLE
this will be used to avoid CRC checks for IO fw development testing
This commit is contained in:
parent
db9bf19e46
commit
677b5f94b2
@ -112,12 +112,14 @@ public:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ask if IOMCU is enabled
|
// ask if IOMCU is enabled. This is a uint8_t to allow
|
||||||
static bool io_enabled(void) {
|
// developer debugging by setting BRD_IO_ENABLE=100 to avoid the
|
||||||
|
// crc check of IO firmware on startup
|
||||||
|
static uint8_t io_enabled(void) {
|
||||||
#if AP_FEATURE_BOARD_DETECT
|
#if AP_FEATURE_BOARD_DETECT
|
||||||
return instance?instance->state.io_enable.get():false;
|
return instance?uint8_t(instance->state.io_enable.get()):0;
|
||||||
#else
|
#else
|
||||||
return false;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user