1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

[VTX] Fixed version checks in smartaudio that disabled pitmode… (#8940)

[VTX] Fixed version checks in smartaudio that disabled pitmode on SA2.1 devices
This commit is contained in:
Michael Keller 2019-09-25 23:30:57 +12:00 committed by GitHub
commit 35e2e16e86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -914,7 +914,7 @@ static void vtxSASetPowerByIndex(vtxDevice_t *vtxDevice, uint8_t index)
static void vtxSASetPitMode(vtxDevice_t *vtxDevice, uint8_t onoff) static void vtxSASetPitMode(vtxDevice_t *vtxDevice, uint8_t onoff)
{ {
if (!(vtxSAIsReady(vtxDevice) && (saDevice.version >= 2))) { if (!vtxSAIsReady(vtxDevice) || saDevice.version < 2) {
return; return;
} }
@ -1013,7 +1013,7 @@ static bool vtxSAGetFreq(const vtxDevice_t *vtxDevice, uint16_t *pFreq)
static bool vtxSAGetStatus(const vtxDevice_t *vtxDevice, unsigned *status) static bool vtxSAGetStatus(const vtxDevice_t *vtxDevice, unsigned *status)
{ {
if (!(vtxSAIsReady(vtxDevice) && (saDevice.version == 2))) { if (!vtxSAIsReady(vtxDevice) || saDevice.version < 2) {
return false; return false;
} }