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:
commit
9e44cd3ca5
71 changed files with 463 additions and 463 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue