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:
parent
45596fc20b
commit
6cc664683e
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue