Skip to content

Conversation

@JellevanKraaij
Copy link

@JellevanKraaij JellevanKraaij commented Oct 27, 2025

Description

This PR fixes a bug in get_network_registration_state where parsing the AT command response +CEREG: ,,... failed because std::from_chars was attempting to parse the number starting at the preceding comma.

The fix involves incrementing the start position by one (+ 1) before calling std::from_chars to correctly skip the leading comma delimiter.

Related

Fixes #923

Testing

Verified that the function now correctly extracts the integer from typical responses like +CEREG: 2,1

@CLAassistant
Copy link

CLAassistant commented Oct 27, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot changed the title fix(modem): CEREG parsing fails due to incorrect state index fix(modem): CEREG parsing fails due to incorrect state index (IDFGH-16681) Oct 27, 2025
@github-actions github-actions bot changed the title fix(modem): CEREG parsing fails due to incorrect state index (IDFGH-16681) fix(modem): CEREG parsing fails due to incorrect state index (IDFGH-16681) (IDFGH-16682) Oct 27, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Opened Issue is new

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants