1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

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.
This commit is contained in:
Stacey Sheldon 2012-01-15 23:04:31 -05:00
parent 8cd4816d7b
commit 3bda0f450d

View File

@ -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);
}
/**