1
0
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:
Benjamin Valentin 2022-02-03 11:03:31 +01:00
parent a45a868651
commit c460c0eb77

View File

@ -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(&ethos_stdio_isrpipe.tsrb); tsrb_clear(&ethos_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(&ethos_stdio_isrpipe, ETHOS_FRAME_DELIMITER); isrpipe_write_one(&ethos_stdio_isrpipe, ETHOS_FRAME_DELIMITER);
#endif
break; break;
case ETHOS_FRAME_TYPE_ERRORED: case ETHOS_FRAME_TYPE_ERRORED:
return; return;