[Gpredict-svn] SF.net SVN: gpredict:[137] trunk/src/gtk-rot-ctrl.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2008-09-18 12:03:49
|
Revision: 137
http://gpredict.svn.sourceforge.net/gpredict/?rev=137&view=rev
Author: csete
Date: 2008-09-18 19:04:00 +0000 (Thu, 18 Sep 2008)
Log Message:
-----------
Removed newline from the end of hamlib commands.
Modified Paths:
--------------
trunk/src/gtk-rot-ctrl.c
Modified: trunk/src/gtk-rot-ctrl.c
===================================================================
--- trunk/src/gtk-rot-ctrl.c 2008-09-18 18:52:52 UTC (rev 136)
+++ trunk/src/gtk-rot-ctrl.c 2008-09-18 19:04:00 UTC (rev 137)
@@ -986,14 +986,9 @@
}
/* send command */
- buff = g_strdup_printf ("p\n");
+ buff = g_strdup_printf ("p");
- /* number of bytes to write depends on platform (EOL) */
-#ifdef G_OS_WIN32
- size = 3;
-#else
- size = 2;
-#endif
+ size = 1;
written = send(sock, buff, size, 0);
if (written != size) {
sat_log_log (SAT_LOG_LEVEL_ERROR,
@@ -1102,14 +1097,9 @@
/* send command */
g_ascii_formatd (azstr, 8, "%7.2f", az);
g_ascii_formatd (elstr, 8, "%7.2f", el);
- buff = g_strdup_printf ("P %s %s\n", azstr, elstr);
+ buff = g_strdup_printf ("P %s %s", azstr, elstr);
- /* number of bytes to write depends on platform (EOL) */
-#ifdef G_OS_WIN32
- size = 19;
-#else
- size = 18;
-#endif
+ size = 17;
written = send(sock, buff, size, 0);
if (written != size) {
sat_log_log (SAT_LOG_LEVEL_ERROR,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|