[Gpredict-svn] SF.net SVN: gpredict:[212] trunk/src/gtk-rig-ctrl.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <cs...@us...> - 2009-03-22 11:47:06
|
Revision: 212 http://gpredict.svn.sourceforge.net/gpredict/?rev=212&view=rev Author: csete Date: 2009-03-22 11:46:57 +0000 (Sun, 22 Mar 2009) Log Message: ----------- Removed conf == NULL checking in controller callback since it is already done during creation of the widget. Modified Paths: -------------- trunk/src/gtk-rig-ctrl.c Modified: trunk/src/gtk-rig-ctrl.c =================================================================== --- trunk/src/gtk-rig-ctrl.c 2009-03-22 11:17:51 UTC (rev 211) +++ trunk/src/gtk-rig-ctrl.c 2009-03-22 11:46:57 UTC (rev 212) @@ -195,7 +195,7 @@ GtkWidget *widget; GtkWidget *table; - /* check that we have rot conf */ + /* check that we have rig conf */ if (!have_conf()) { return NULL; } @@ -850,7 +850,7 @@ last set frequency. If different, it means that user has changed frequency on the radio dial => update transponder knob */ - if ((ctrl->engaged) && (ctrl->conf != NULL)) { + if (ctrl->engaged) { lastfreq = gtk_freq_knob_get_value (GTK_FREQ_KNOB (ctrl->RigFreqDown)); /* get current frequency from rig */ @@ -892,7 +892,7 @@ /* if device is engaged, send freq command to radio */ - if ((ctrl->engaged) && (ctrl->conf != NULL) && + if ((ctrl->engaged) && (fabs (readfreq-gtk_freq_knob_get_value (GTK_FREQ_KNOB(ctrl->RigFreqDown))) > 0.99)) { if (set_freq_simplex (ctrl, gtk_freq_knob_get_value (GTK_FREQ_KNOB(ctrl->RigFreqDown)))) { /* reset error counter */ @@ -925,7 +925,7 @@ } -/** \brief Set frequency +/** \brief Set frequency in * \param ctrl Pointer to the GtkRigCtrl structure. * \param freq The new frequency. * \return TRUE if the operation was successful, FALSE if a connection error This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |