mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Fixed VTX chan to 0 via SetFreqByMHz
This commit is contained in:
parent
e54ef4815a
commit
c9589fbe4d
1 changed files with 0 additions and 1 deletions
|
@ -2289,7 +2289,6 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
||||||
vtxSettingsConfigMutable()->freq = vtxCommonLookupFrequency(vtxDevice, newBand, newChannel);
|
vtxSettingsConfigMutable()->freq = vtxCommonLookupFrequency(vtxDevice, newBand, newChannel);
|
||||||
} else if (newFrequency <= VTX_SETTINGS_MAX_FREQUENCY_MHZ) { // Value is frequency in MHz
|
} else if (newFrequency <= VTX_SETTINGS_MAX_FREQUENCY_MHZ) { // Value is frequency in MHz
|
||||||
vtxSettingsConfigMutable()->band = 0;
|
vtxSettingsConfigMutable()->band = 0;
|
||||||
vtxSettingsConfigMutable()->channel = 0;
|
|
||||||
vtxSettingsConfigMutable()->freq = newFrequency;
|
vtxSettingsConfigMutable()->freq = newFrequency;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue