AP_HAL_ChibiOS: add #error to stop regressions in hwdef files

old bad configurations being removed, stop them coming back
This commit is contained in:
Peter Barker
2026-05-07 09:09:48 +10:00
committed by Peter Barker
parent 8028a47152
commit 13b5743446
2 changed files with 8 additions and 4 deletions
+8
View File
@@ -116,6 +116,14 @@ uint8_t RCInput::read(uint16_t* periods, uint8_t len)
return len;
}
// there is no point enabling the thread if you're not using the
// RCProtocol library - this catches regressions in our hwdefs. It
// can be removed in the future when the chance of there being
// outstanding work with regressions in is negigible
#if HAL_RCIN_THREAD_ENABLED && !AP_RCPROTOCOL_ENABLED
#error Do not enable the RCIN thread when not doing AP_RCPROTOCOL_ENABLED
#endif
void RCInput::_timer_tick(void)
{
if (!_init) {