Hi,
Sorry if the answer is obvious but I'm not getting it :-)
I looked at ble_app_uart, more specifically the uart_event_handle function and its interactions with app_uart_fifo's FIFO. I cannot see how more than one byte in the RX FIFO could be used since the uart_event_handle is called in interrupt context. By unrolling the whole code we basically have
app_uart_event_handler:
app_fifo_put(c);
if(FIFO_LENGTH() == 1) uart_event_handle();
uart_event_handle:
app_fifo_get(c); // So FIFO length is back to 0 (thus 1 on next byte rvcd)
Can someone please enlighten me?
Regards