mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Removing final dependency on board.h.
board.h is no-longer required.
This commit is contained in:
parent
cb63f6e2b5
commit
92f74ac0c2
9 changed files with 83 additions and 199 deletions
|
@ -65,6 +65,20 @@ void serialRxInit(rxConfig_t *rxConfig, failsafe_t *failsafe)
|
|||
}
|
||||
}
|
||||
|
||||
bool isSerialRxFrameComplete(rxConfig_t *rxConfig)
|
||||
{
|
||||
switch (rxConfig->serialrx_type) {
|
||||
case SERIALRX_SPEKTRUM1024:
|
||||
case SERIALRX_SPEKTRUM2048:
|
||||
return spektrumFrameComplete();
|
||||
case SERIALRX_SBUS:
|
||||
return sbusFrameComplete();
|
||||
case SERIALRX_SUMD:
|
||||
return sumdFrameComplete();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void computeRC(rxConfig_t *rxConfig, rxRuntimeConfig_t *rxRuntimeConfig)
|
||||
{
|
||||
uint8_t chan;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue