1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Fix frequency lookup table.

frequency = vtx58frequencyTable[band][channel];
returns the wrong frequency. Shifting left and up by 1 row and column should fix it.
This commit is contained in:
Jahnkeanater 2017-10-14 02:29:07 -05:00 committed by GitHub
parent 45596fc20b
commit 6cc664683e

View file

@ -597,8 +597,8 @@ static void applyLedVtxLayer(bool updateNow, timeUs_t *timer)
vtxCommonGetPowerIndex(&power);
vtxCommonGetPitMode(&pit);
frequency = vtx58frequencyTable[band][channel];
frequency = vtx58frequencyTable[band - 1][channel - 1]; //subtracting 1 from band and channel so that correct frequency is returned.
//might not be correct for tramp but should fix smart audio.
// check if last vtx values have changed.
check = pit + (power << 1) + (band << 4) + (channel << 8);
if (!showSettings && check != lastCheck) {