Merge pull request #4362 from Jahnkeanater/patch-2

Fix frequency lookup table in ledstrip.c
This commit is contained in:
Michael Keller 2017-10-15 10:08:28 +13:00 committed by GitHub
commit 09b910da2e
1 changed files with 2 additions and 2 deletions

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) {