Skip to content
Commit 059abd8d authored by Siddharth Chandrasekaran's avatar Siddharth Chandrasekaran Committed by Carles Cufí
Browse files

mgmt/osdp: Flush RX buffer before sending data



Partial packets in the RX buffers cause the subsequent packet to be
treated as malformed. The RX buffer can have partial data if the sender
is too slow in sending the packet of if there is an interruption in
transmission mid-way.

To avoid any issues due to such partials, flush the uart channel before
sending the command/response.

Signed-off-by: default avatarSiddharth Chandrasekaran <sidcha.dev@gmail.com>
parent a1f3c763
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment