From 3bda0f450d112df41b2d47921a8f5fa439d047ff Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Sun, 15 Jan 2012 23:04:31 -0500 Subject: [PATCH] bootfault: force fault when no telemetry available on OP too If no telemetry link is configured, this will force the board to reset before finishing init. The BootFault logic will catch this after 3 resets and will boot with default hwsettings on the next reset. This won't currently ever fire on OP though since we always configure the serial telemetry interface. This just makes sure the pattern is present in case anyone decides to compile without serial telemetry. --- flight/OpenPilot/System/pios_board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flight/OpenPilot/System/pios_board.c b/flight/OpenPilot/System/pios_board.c index 8dbb5eee2..0fb873f0a 100644 --- a/flight/OpenPilot/System/pios_board.c +++ b/flight/OpenPilot/System/pios_board.c @@ -1450,6 +1450,9 @@ void PIOS_Board_Init(void) { PIOS_Assert(0); } #endif /* PIOS_INCLUDE_I2C */ + + /* Make sure we have at least one telemetry link configured or else fail initialization */ + PIOS_Assert(pios_com_telem_rf_id || pios_com_telem_usb_id); } /**