Commit b2475804 authored by David T. Pocock's avatar David T. Pocock Committed by Anas Nashif
Browse files

serial: bluetooth: Print warning once when ring buffer is full



This avoids cluttering the logging subsystem.

Signed-off-by: default avatarDavid T. Pocock <davidtpocock@gmail.com>
parent 2f4ca351
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ static void uart_bt_poll_out(const struct device *dev, unsigned char c)
	/** Right now we're discarding data if ring-buf is full. */
	while (!ring_buf_put(ringbuf, &c, 1)) {
		if (k_is_in_isr() || !atomic_get(&dev_data->bt.enabled)) {
			LOG_INF("Ring buffer full, discard %c", c);
			LOG_WRN_ONCE("Ring buffer full, discard %c", c);
			break;
		}