1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Fix VTX chan to 0 via SetFreqByMHz (#8338)

Fix VTX chan to 0 via SetFreqByMHz
This commit is contained in:
Michael Keller 2019-05-25 22:56:07 +12:00 committed by GitHub
commit cf32bea79d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2292,7 +2292,6 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
vtxSettingsConfigMutable()->freq = vtxCommonLookupFrequency(vtxDevice, newBand, newChannel);
} else if (newFrequency <= VTX_SETTINGS_MAX_FREQUENCY_MHZ) { // Value is frequency in MHz
vtxSettingsConfigMutable()->band = 0;
vtxSettingsConfigMutable()->channel = 0;
vtxSettingsConfigMutable()->freq = newFrequency;
}