[Gpredict-svn] SF.net SVN: gpredict:[143] trunk/src
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2008-09-20 23:54:08
|
Revision: 143
http://gpredict.svn.sourceforge.net/gpredict/?rev=143&view=rev
Author: csete
Date: 2008-09-20 23:54:02 +0000 (Sat, 20 Sep 2008)
Log Message:
-----------
Fixed bug that caused local oscillator frequency to be 0 when trying to edit a radio configuration.
Modified Paths:
--------------
trunk/src/sat-pref-rig-editor.c
trunk/src/sat-pref-rig.c
Modified: trunk/src/sat-pref-rig-editor.c
===================================================================
--- trunk/src/sat-pref-rig-editor.c 2008-09-20 23:38:50 UTC (rev 142)
+++ trunk/src/sat-pref-rig-editor.c 2008-09-20 23:54:02 UTC (rev 143)
@@ -231,7 +231,7 @@
gtk_spin_button_set_value (GTK_SPIN_BUTTON (port), 4532); /* hamlib default? */
/* lo in MHz */
- gtk_spin_button_set_value (GTK_SPIN_BUTTON (lo), conf->lo / 1000000);
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (lo), conf->lo / 1000000.0);
}
@@ -277,7 +277,7 @@
conf->port = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (port));
/* lo freq */
- conf->lo = 1000000*gtk_spin_button_get_value (GTK_SPIN_BUTTON (lo));
+ conf->lo = 1000000.0*gtk_spin_button_get_value (GTK_SPIN_BUTTON (lo));
return TRUE;
}
Modified: trunk/src/sat-pref-rig.c
===================================================================
--- trunk/src/sat-pref-rig.c 2008-09-20 23:38:50 UTC (rev 142)
+++ trunk/src/sat-pref-rig.c 2008-09-20 23:54:02 UTC (rev 143)
@@ -450,7 +450,7 @@
RIG_LIST_COL_NAME, &conf.name,
RIG_LIST_COL_HOST, &conf.host,
RIG_LIST_COL_PORT, &conf.port,
- RIG_LIST_COL_PORT, &conf.lo,
+ RIG_LIST_COL_LO, &conf.lo,
-1);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|