# HG changeset patch # User Daniele Nicolodi # Date 1396278212 -7200 # Node ID 3427013e4f70acbc90cf6fc448d1178d9225aafa # Parent f105ac22da056fee3ad472421d3a3ca69845f576 Minor change to the KK FX80 interface diff -r f105ac22da05 -r 3427013e4f70 KKFX80E.c --- 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) { diff -r f105ac22da05 -r 3427013e4f70 KKFX80E.h --- a/KKFX80E.h Mon Mar 31 17:03:31 2014 +0200 +++ b/KKFX80E.h Mon Mar 31 17:03:32 2014 +0200 @@ -15,7 +15,7 @@ int FX_Open(char *port); void FX_Close(void); -int FX_Send(char *cmd); +int FX_Send(char cmd); int FX_Recv(char **data, int timeout); char * FX_Error(void);