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
+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));