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

Allow MAVLink telemetry only for targets with >128K flash

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2016-10-17 18:43:28 +10:00
parent 09140cfdef
commit 8e249ce187
3 changed files with 13 additions and 1 deletions

View file

@ -59,6 +59,10 @@ void telemetryInit(void)
initLtmTelemetry(telemetryConfig);
initJetiExBusTelemetry(telemetryConfig);
#if defined(TELEMETRY_MAVLINK)
initMAVLinkTelemetry();
#endif
telemetryCheckState();
}
@ -90,7 +94,10 @@ void telemetryCheckState(void)
checkSmartPortTelemetryState();
checkLtmTelemetryState();
checkJetiExBusTelemetryState();
#if defined(TELEMETRY_MAVLINK)
checkMAVLinkTelemetryState();
#endif
}
void telemetryProcess(uint32_t currentTime, rxConfig_t *rxConfig, uint16_t deadband3d_throttle)
@ -100,7 +107,10 @@ void telemetryProcess(uint32_t currentTime, rxConfig_t *rxConfig, uint16_t deadb
handleSmartPortTelemetry();
handleLtmTelemetry();
handleJetiExBusTelemetry();
#if defined(TELEMETRY_MAVLINK)
handleMAVLinkTelemetry();
#endif
}
#endif