Skip to content

Commit ee44357

Browse files
Bjarki Arge Andreasenfabiobaltieri
authored andcommitted
modem: modem_cellular: Reset receive state on attach
This commit resets the state of the CMUX receive state machine when the CMUX instance is attached to a pipe. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent b495fda commit ee44357

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/modem/modem_cmux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,7 @@ int modem_cmux_attach(struct modem_cmux *cmux, struct modem_pipe *pipe)
10141014
{
10151015
cmux->pipe = pipe;
10161016
ring_buf_reset(&cmux->transmit_rb);
1017+
cmux->receive_state = MODEM_CMUX_RECEIVE_STATE_SOF;
10171018
modem_pipe_attach(cmux->pipe, modem_cmux_bus_callback, cmux);
10181019
return 0;
10191020
}

0 commit comments

Comments
 (0)