mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
refer to PSOCK_NEWDATA.
This commit is contained in:
parent
e6630a6ccb
commit
1d1b99c0aa
@ -30,7 +30,7 @@
|
|||||||
*
|
*
|
||||||
* Author: Adam Dunkels <adam@sics.se>
|
* Author: Adam Dunkels <adam@sics.se>
|
||||||
*
|
*
|
||||||
* $Id: psock.h,v 1.2 2007/04/01 18:20:55 adamdunkels Exp $
|
* $Id: psock.h,v 1.3 2007/09/04 12:39:00 nvt-se Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -359,7 +359,7 @@ char psock_newdata(struct psock *s);
|
|||||||
{
|
{
|
||||||
PSOCK_BEGIN(s);
|
PSOCK_BEGIN(s);
|
||||||
|
|
||||||
PSOCK_WAIT_UNTIL(s, PSOCK_NEWADATA(s) || timer_expired(t));
|
PSOCK_WAIT_UNTIL(s, PSOCK_NEWDATA(s) || timer_expired(t));
|
||||||
|
|
||||||
if(PSOCK_NEWDATA(s)) {
|
if(PSOCK_NEWDATA(s)) {
|
||||||
PSOCK_READTO(s, '\n');
|
PSOCK_READTO(s, '\n');
|
||||||
|
Loading…
Reference in New Issue
Block a user