more bugfix

This commit is contained in:
Ryzerth
2021-07-29 20:22:16 +02:00
parent 5d08f1018d
commit a487c0aaea
4 changed files with 17 additions and 4 deletions

View File

@@ -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;