mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-18 22:32:44 +00:00
Fixed OS EventHandler compilation issue
This commit is contained in:
@@ -69,6 +69,18 @@ void FrequencySelect::decrementDigit(int i) {
|
||||
digits[i]--;
|
||||
}
|
||||
else {
|
||||
if (i == 0) { return; }
|
||||
|
||||
// Check if there are non zero digits afterwards
|
||||
bool otherNoneZero = false;
|
||||
for (int j = i - 1; j >= 0; j--) {
|
||||
if (digits[j] > 0) {
|
||||
otherNoneZero = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!otherNoneZero) { return; }
|
||||
|
||||
digits[i] = 9;
|
||||
decrementDigit(i - 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user