Skip to content
Commit 26cd98e4 authored by Anders T. Akre's avatar Anders T. Akre Committed by Anas Nashif
Browse files

modem: ubx: fix incoming byte processing



`ret` holds the amount of bytes received from the modem. However during
processing of the bytes its value is overwritten by the return value of
`modem_ubx_process_received_byte`, in practice discarding all but the
first byte read.

To prevent this, store the length in a separate variable.

Signed-off-by: default avatarAnders T. Akre <anders@akre.io>
parent 93c9da66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment