mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-22 01:32:43 +00:00
Spectrum warp-around when switching steps
This commit is contained in:
parent
bc9bb489e6
commit
34f2168856
@ -488,12 +488,10 @@ static void UpdateDBMax(bool inc) {
|
||||
}
|
||||
|
||||
static void UpdateScanStep(bool inc) {
|
||||
if (inc && settings.scanStepIndex < S_STEP_100_0kHz) {
|
||||
settings.scanStepIndex++;
|
||||
} else if (!inc && settings.scanStepIndex > 0) {
|
||||
settings.scanStepIndex--;
|
||||
if (inc) {
|
||||
settings.scanStepIndex = settings.scanStepIndex != S_STEP_100_0kHz ? settings.scanStepIndex + 1 : 0;
|
||||
} else {
|
||||
return;
|
||||
settings.scanStepIndex = settings.scanStepIndex != 0 ? settings.scanStepIndex - 1 : S_STEP_100_0kHz;
|
||||
}
|
||||
|
||||
settings.frequencyChangeStep = GetBW() >> 1;
|
||||
|
Loading…
Reference in New Issue
Block a user