Commit ee1cbf06 authored by Krzysztof Chruściński's avatar Krzysztof Chruściński Committed by Mahesh Mahadevan
Browse files

drivers: serial: nrfx_uart: Fix poll_out for low baudrates



uart_poll_out had 1 ms timeout which is too short for lower baudrates.
Increase to 10 ms.

Signed-off-by: default avatarKrzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
parent 46e16357
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -287,7 +287,7 @@ static void uart_nrfx_poll_out(const struct device *dev, unsigned char c)
	/* Wait until the transmitter is ready, i.e. the character is sent. */
	bool res;

	NRFX_WAIT_FOR(event_txdrdy_check(), 1000, 1, res);
	NRFX_WAIT_FOR(event_txdrdy_check(), 10000, 1, res);

	/* Deactivate the transmitter so that it does not needlessly
	 * consume power.