[Tinyos-2-commits]
CVS: tinyos-2.x/support/sdk/c serialsource.c, 1.4, 1.5
David Gay
idgay at users.sourceforge.net
Mon Jul 16 08:58:18 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/support/sdk/c
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv891
Modified Files:
serialsource.c
Log Message:
non-blocking read fix from Steve McKown
Index: serialsource.c
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/sdk/c/serialsource.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** serialsource.c 5 Jul 2007 16:02:50 -0000 1.4
--- serialsource.c 16 Jul 2007 15:58:16 -0000 1.5
***************
*** 628,636 ****
*/
{
for (;;)
{
struct packet_list *entry;
- read_and_process(src, src->non_blocking);
entry = pop_protocol_packet(src, P_PACKET_NO_ACK);
if (entry)
--- 628,636 ----
*/
{
+ read_and_process(src, TRUE);
for (;;)
{
struct packet_list *entry;
entry = pop_protocol_packet(src, P_PACKET_NO_ACK);
if (entry)
***************
*** 646,649 ****
--- 646,650 ----
return NULL;
source_wait(src, NULL);
+ read_and_process(src, src->non_blocking);
}
}
More information about the Tinyos-2-commits
mailing list