1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +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 mikeller
parent c3b250ee2c
commit 65c06f31c5

View file

@ -2266,7 +2266,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;
}