1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Renamed 'rxRuntimeConfig' to 'rxRuntimeState'. (#9072)

Renamed 'rxRuntimeConfig' to 'rxRuntimeState'.
This commit is contained in:
Michael Keller 2019-10-22 11:27:36 +13:00 committed by GitHub
commit 9e44cd3ca5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
71 changed files with 463 additions and 463 deletions

View file

@ -293,10 +293,10 @@ void tasksInit(void)
#ifdef USE_TELEMETRY
if (featureIsEnabled(FEATURE_TELEMETRY)) {
setTaskEnabled(TASK_TELEMETRY, true);
if (rxRuntimeConfig.serialrxProvider == SERIALRX_JETIEXBUS) {
if (rxRuntimeState.serialrxProvider == SERIALRX_JETIEXBUS) {
// Reschedule telemetry to 500hz for Jeti Exbus
rescheduleTask(TASK_TELEMETRY, TASK_PERIOD_HZ(500));
} else if (rxRuntimeConfig.serialrxProvider == SERIALRX_CRSF) {
} else if (rxRuntimeState.serialrxProvider == SERIALRX_CRSF) {
// Reschedule telemetry to 500hz, 2ms for CRSF
rescheduleTask(TASK_TELEMETRY, TASK_PERIOD_HZ(500));
}