1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

[VTX] Fixed version checks in smartaudio that prevented pitmode from working on SA2.1 devices

This commit is contained in:
functionpointer 2019-09-23 23:56:05 +02:00
parent d1d9875208
commit d3d1a5fd89

View file

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