mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-25 12:07:49 +02:00
more bugfix
This commit is contained in:
@ -232,7 +232,8 @@ void FrequencySelect::draw() {
|
||||
//ImGui::NewLine();
|
||||
}
|
||||
|
||||
void FrequencySelect::setFrequency(uint64_t freq) {
|
||||
void FrequencySelect::setFrequency(int64_t freq) {
|
||||
freq = std::max<int64_t>(0, freq);
|
||||
int i = 11;
|
||||
for (uint64_t f = freq; i >= 0; i--) {
|
||||
digits[i] = f % 10;
|
||||
|
@ -8,7 +8,7 @@ public:
|
||||
FrequencySelect();
|
||||
void init();
|
||||
void draw();
|
||||
void setFrequency(uint64_t freq);
|
||||
void setFrequency(int64_t freq);
|
||||
|
||||
uint64_t frequency;
|
||||
bool frequencyChanged = false;
|
||||
|
Reference in New Issue
Block a user