mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +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);
|
||||
break;
|
||||
case ETHOS_FRAME_TYPE_TEXT:
|
||||
#ifdef MODULE_ETHOS_STDIO
|
||||
tsrb_clear(ðos_stdio_isrpipe.tsrb);
|
||||
/* signal to handler thread that frame is at an end (makes handler thread to
|
||||
* truncate frame) */
|
||||
isrpipe_write_one(ðos_stdio_isrpipe, ETHOS_FRAME_DELIMITER);
|
||||
#endif
|
||||
break;
|
||||
case ETHOS_FRAME_TYPE_ERRORED:
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user