Skip to content

Fix: State when losing connection #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 10, 2025

Conversation

KennethKnudsen97
Copy link
Contributor

@KennethKnudsen97 KennethKnudsen97 commented Apr 9, 2025

When testing our firmware I ran into many times that when losing connection the ppp_run loop skips the "wait_operation_state(DataEstablished)" because the operation state never got changed when we lost connection.
The cell_device in device_fut is waiting for registration to change but when I tested it the ppp_run looped around before the device got the registration change.

I fixed this by setting desired state to initialized once we exit the embassy-net-ppp run.
I also added a drop implementation for this, as in cases where the select breaks we still wants to set the states.

@KennethKnudsen97 KennethKnudsen97 merged commit 83837cc into feature/async Apr 10, 2025
4 checks passed
@KennethKnudsen97 KennethKnudsen97 deleted the fix/state_on_ppp_drop branch April 10, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant