mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 17:52:47 +01:00
drivers/ethos: fix build without ethos_stdio
This commit is contained in:
parent
a45a868651
commit
c460c0eb77
@ -89,10 +89,12 @@ static void _fail_frame(ethos_t *dev)
|
|||||||
tsrb_add_one(&dev->inbuf, ETHOS_FRAME_DELIMITER);
|
tsrb_add_one(&dev->inbuf, ETHOS_FRAME_DELIMITER);
|
||||||
break;
|
break;
|
||||||
case ETHOS_FRAME_TYPE_TEXT:
|
case ETHOS_FRAME_TYPE_TEXT:
|
||||||
|
#ifdef MODULE_ETHOS_STDIO
|
||||||
tsrb_clear(ðos_stdio_isrpipe.tsrb);
|
tsrb_clear(ðos_stdio_isrpipe.tsrb);
|
||||||
/* signal to handler thread that frame is at an end (makes handler thread to
|
/* signal to handler thread that frame is at an end (makes handler thread to
|
||||||
* truncate frame) */
|
* truncate frame) */
|
||||||
isrpipe_write_one(ðos_stdio_isrpipe, ETHOS_FRAME_DELIMITER);
|
isrpipe_write_one(ðos_stdio_isrpipe, ETHOS_FRAME_DELIMITER);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case ETHOS_FRAME_TYPE_ERRORED:
|
case ETHOS_FRAME_TYPE_ERRORED:
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user