Skip to content

Commit f643f3a

Browse files
ubiedanashif
authored andcommitted
drivers: serial: bt: Make TX flush non-deferrable
To prevent postponing data flush until filling fifo. Now the flush will occur at the scheduled time, regardless of subsequent poll_out reqs. Signed-off-by: Luis Ubieda <[email protected]>
1 parent 326f080 commit f643f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_bt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static void uart_bt_poll_out(const struct device *dev, unsigned char c)
169169
* data, so more than one byte is transmitted (e.g: when poll_out is
170170
* called inside a for-loop).
171171
*/
172-
k_work_reschedule(&dev_data->uart.tx_work, K_MSEC(1));
172+
k_work_schedule(&dev_data->uart.tx_work, K_MSEC(1));
173173
}
174174
}
175175

0 commit comments

Comments
 (0)