git://git.jankratochvil.net
/
gnokii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regular status reporting disabled back again
[gnokii.git]
/
common
/
data
/
virtmodem.c
diff --git
a/common/data/virtmodem.c
b/common/data/virtmodem.c
index
bcedc7e
..
c421fd1
100644
(file)
--- a/
common/data/virtmodem.c
+++ b/
common/data/virtmodem.c
@@
-107,11
+107,16
@@
bool VM_Initialise(char *model,char *port, char *initlength, GSM_ConnectionType
return (false);
}
return (false);
}
+#ifndef UCLINUX
/* Create and start thread, */
return VM_ThreadLoop();
/* Create and start thread, */
return VM_ThreadLoop();
+#else
+ return true;
+#endif
}
static void VM_CharHandler(void);
}
static void VM_CharHandler(void);
+extern GSM_Error N6110_SendStatusRequest(void);
bool VM_ThreadLoop(void)
{
bool VM_ThreadLoop(void)
{
@@
-131,13
+136,16
@@
bool VM_ThreadLoop(void)
FD_ZERO(&readfds);
FD_SET(PtyRDFD,&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 */
res = select(PtyRDFD+1,&readfds,NULL/*writefds*/,NULL/*exceptfds*/,&timeout);
switch (res) {
case 0: /* Timeout */
+#if 0
+ N6110_SendStatusRequest();
+#endif
break;
case -1:
break;
case -1: