1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Blackbox: Use rx getters instead of importing private state directly

This commit is contained in:
Nicholas Sherlock 2015-08-28 21:26:11 +12:00
parent b6a75cb3f1
commit f29b9dd329
2 changed files with 4 additions and 6 deletions

View file

@ -312,8 +312,6 @@ extern uint32_t currentTime;
//From rx.c:
extern uint16_t rssi;
bool rxSignalReceived;
bool rxFlightChannelsValid;
static BlackboxState blackboxState = BLACKBOX_STATE_DISABLED;
@ -712,8 +710,8 @@ static void loadSlowState(blackboxSlowState_t *slow)
slow->flightModeFlags = flightModeFlags;
slow->stateFlags = stateFlags;
slow->failsafePhase = failsafePhase();
slow->rxSignalReceived = rxSignalReceived;
slow->rxFlightChannelsValid = rxFlightChannelsValid;
slow->rxSignalReceived = rxIsReceivingSignal();
slow->rxFlightChannelsValid = rxAreFlightChannelsValid();
}
/**