mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-02 22:14:47 -04:00
Externalize build version, fix tuning label updates
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#define CUBICSDR_VERSION "v0.01a"
|
||||
#define CUBICSDR_TITLE "CubicSDR " CUBICSDR_VERSION " by Charles J. Cliffe (@ccliffe)"
|
||||
|
||||
#ifndef __BYTE_ORDER
|
||||
|
||||
@@ -82,7 +82,9 @@ void TuningCanvas::OnIdle(wxIdleEvent &event) {
|
||||
} else if (fabs(moveVal) >= 1.0) {
|
||||
if (uxDown < -0.275) {
|
||||
if (activeDemod != NULL) {
|
||||
activeDemod->setFrequency(activeDemod->getFrequency() + (int) (moveVal * fabs(moveVal) * fabs(moveVal) * fabs(moveVal)));
|
||||
long long freq = activeDemod->getFrequency() + (int) (moveVal * fabs(moveVal) * fabs(moveVal) * fabs(moveVal));
|
||||
activeDemod->setFrequency(freq);
|
||||
activeDemod->updateLabel(freq);
|
||||
}
|
||||
} else {
|
||||
int amt = (int) (moveVal * fabs(moveVal) * fabs(moveVal) * fabs(moveVal));
|
||||
|
||||
Reference in New Issue
Block a user