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:
parent
d1d9875208
commit
d3d1a5fd89
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue