git://git.jankratochvil.net
/
gnokii.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37cdea3
)
datacalls debugging attempts, not yet successful
author
short
<>
Tue, 5 Mar 2002 21:38:15 +0000
(21:38 +0000)
committer
short
<>
Tue, 5 Mar 2002 21:38:15 +0000
(21:38 +0000)
common/data/virtmodem.c
patch
|
blob
|
history
include/newmodules/n6110.h
patch
|
blob
|
history
diff --git
a/common/data/virtmodem.c
b/common/data/virtmodem.c
index
bcedc7e
..
2ca698b
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,14
@@
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 */
+ N6110_SendStatusRequest();
break;
case -1:
break;
case -1:
diff --git
a/include/newmodules/n6110.h
b/include/newmodules/n6110.h
index
235d70f
..
da1bcdd
100644
(file)
--- a/
include/newmodules/n6110.h
+++ b/
include/newmodules/n6110.h
@@
-58,7
+58,7
@@
static GSM_Error N6110_Initialise(char *port_device, char *initlength,
static void N6110_DispatchMessage(u16 MessageLength, u8 *MessageBuffer,
u8 MessageType);
static void N6110_DispatchMessage(u16 MessageLength, u8 *MessageBuffer,
u8 MessageType);
-
static
GSM_Error N6110_SendStatusRequest(void);
+GSM_Error N6110_SendStatusRequest(void);
static int N6110_GetMemoryType(GSM_MemoryType memory_type);
static int N6110_GetMemoryType(GSM_MemoryType memory_type);