diff KKFX80E.c @ 193:3427013e4f70

Minor change to the KK FX80 interface
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Mon, 31 Mar 2014 17:03:32 +0200
parents 4f1f353e84f5
children
line wrap: on
line diff
--- a/KKFX80E.c	Mon Mar 31 17:03:31 2014 +0200
+++ b/KKFX80E.c	Mon Mar 31 17:03:32 2014 +0200
@@ -87,11 +87,12 @@
 }
 
 
-int FX_Send(char *cmd)
+int FX_Send(char cmd)
 {
-	int rv = FX_SendCommand(&cmd);
+	char *p = &cmd;
+	int rv = FX_SendCommand(&p);
 	if (! rv)
-		errormsg = cmd;
+		errormsg = p;
 	return rv;
 }
 
@@ -108,6 +109,7 @@
 			rv = 0;
 			data = "Function FX_Recv: Timeout";
 		}
+		Delay(0.01);
 	} while ((! data) && (rv == 1));
 	
 	if (! rv) {