mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 07:15:18 +03:00
Interrupt/DMA driven SX1280 interaction for ELRS
This commit is contained in:
parent
7b4415f062
commit
fc8640154a
39 changed files with 1003 additions and 438 deletions
|
@ -167,7 +167,6 @@ static void taskUpdateAccelerometer(timeUs_t currentTimeUs)
|
|||
|
||||
typedef enum {
|
||||
RX_STATE_CHECK,
|
||||
RX_STATE_PROCESS,
|
||||
RX_STATE_MODES,
|
||||
RX_STATE_UPDATE,
|
||||
RX_STATE_COUNT
|
||||
|
@ -195,10 +194,6 @@ static void taskUpdateRxMain(timeUs_t currentTimeUs)
|
|||
switch (rxState) {
|
||||
default:
|
||||
case RX_STATE_CHECK:
|
||||
rxState = RX_STATE_PROCESS;
|
||||
break;
|
||||
|
||||
case RX_STATE_PROCESS:
|
||||
if (!processRx(currentTimeUs)) {
|
||||
rxState = RX_STATE_CHECK;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue