mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Large code re-organization which separates some key tasks in the rx
code. Tested with X8R in SBus and PWM, and Spek Sat, GR-24 PPM, PWM and SUMD, Spek PPM
This commit is contained in:
parent
5142ff032a
commit
2c79b9777e
8 changed files with 140 additions and 89 deletions
|
@ -206,7 +206,13 @@ void updateTicker(void)
|
|||
void updateRxStatus(void)
|
||||
{
|
||||
i2c_OLED_set_xy(SCREEN_CHARACTER_COLUMN_COUNT - 2, 0);
|
||||
i2c_OLED_send_char(rxIsReceivingSignal() ? 'R' : '!');
|
||||
char rxStatus = '!';
|
||||
if (rxIsReceivingSignal()) {
|
||||
rxStatus = 'r';
|
||||
} if (rxAreFlightChannelsValid()) {
|
||||
rxStatus = 'R';
|
||||
}
|
||||
i2c_OLED_send_char(rxStatus);
|
||||
}
|
||||
|
||||
void updateFailsafeStatus(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue