Skip to content

ESM: delegate gps management to LocationProvider#820

Merged
ripplebiz merged 3 commits into
meshcore-dev:devfrom
fdlamotte:gps_reset_fix
Sep 28, 2025
Merged

ESM: delegate gps management to LocationProvider#820
ripplebiz merged 3 commits into
meshcore-dev:devfrom
fdlamotte:gps_reset_fix

Conversation

@fdlamotte

Copy link
Copy Markdown
Collaborator

There was duplicate code (and duplicate symbols) that led to lots of confusion

Tried to use gps init routines from LocationProvider in ESM, instead of having the same code (with different symbol names)

This was referenced Sep 23, 2025
@recrof

recrof commented Sep 24, 2025

Copy link
Copy Markdown
Member

this one is also important for fixing failing t-echo build: https://files.brazio.org/meshcore/nightly/report.txt

@Quency-D

Copy link
Copy Markdown
Contributor

Great, this looks cleaner.

@fdlamotte

Copy link
Copy Markdown
Collaborator Author

Great, this looks cleaner.

Hi @Quency-D, really can't blame you because, there was (and it's still not totally fixed) a mess here. In the end we owe you one because it forced me to act ;)

I'm seeing some interest in #778 and think this could be handed to location provider too ... I've let a message there

digitalWrite(_pin_en, PIN_GPS_EN_ACTIVE);
}
if (_pin_reset != -1) {
digitalWrite(_pin_reset, !GPS_RESET_FORCE);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering if the begin() also needs to do the same reset logic as before... with the delay(10) etc?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll be awk most of the day ...

But the idea here was power on through begin() and reset() to reset (I even wait 100ms here which is a lot ...)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rethought about it and called reset after begin to force reset (and keep exact same behaviour of ESM as it has been used for months ;) )

should be ok now

@ripplebiz ripplebiz merged commit e5de6e6 into meshcore-dev:dev Sep 28, 2025
@fdlamotte fdlamotte deleted the gps_reset_fix branch October 3, 2025 15:34
agessaman pushed a commit to agessaman/MeshCore that referenced this pull request Nov 8, 2025
ESM: delegate gps management to LocationProvider
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.

4 participants