Skip to content
Commit 20fb6b6d authored by Jeppe Odgaard's avatar Jeppe Odgaard Committed by Carles Cufí
Browse files

drivers: sensors: explorir_m: fix uart flush early termination



`explorir_m_uart_flush_until_end` terminates immediately if the read
variable is initially equal to `EXPLORIR_M_MAX_RESPONSE_DELAY` and
`uart_poll_in` does not read anything.

Fix this by only checking the read variable if `uart_poll_in` reads a char.

Signed-off-by: default avatarJeppe Odgaard <jeppe.odgaard@prevas.dk>
parent ef30aa86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment