Externalize build version, fix tuning label updates

This commit is contained in:
Charles J. Cliffe
2015-02-22 23:02:39 -05:00
parent adf160ca00
commit a7a4ba9d29
3 changed files with 18 additions and 2 deletions
-1
View File
@@ -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
+3 -1
View File
@@ -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));