static bool UseSTDIO; /* Use STDIO for debugging purposes instead of pty */
bool CommandMode;
-static bool VM_ThreadLoop(void);
static GSM_Error VM_GSMInitialise(char *model, char *port, char *initlength, GSM_ConnectionType connection, char *synchronizetime);
static int VM_PtySetup(char *bindir);
return (false);
}
+#ifndef UCLINUX
/* Create and start thread, */
return VM_ThreadLoop();
+#else
+ return true;
+#endif
}
static void VM_CharHandler(void);
+extern GSM_Error N6110_SendStatusRequest(void);
-static bool VM_ThreadLoop(void)
+bool VM_ThreadLoop(void)
{
int res;
fd_set readfds;
FD_ZERO(&readfds);
FD_SET(PtyRDFD,&readfds);
- timeout.tv_sec=0;
- timeout.tv_usec=500*1000;
+ timeout.tv_sec=2;
+ timeout.tv_usec=0;/*500*1000;*/
res = select(PtyRDFD+1,&readfds,NULL/*writefds*/,NULL/*exceptfds*/,&timeout);
switch (res) {
case 0: /* Timeout */
+ N6110_SendStatusRequest();
break;
case -1: