Skip to content
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

Simplify GNSS Probe code #4647

Merged
merged 1 commit into from
Sep 7, 2024
Merged

Conversation

fifieldt
Copy link
Contributor

@fifieldt fifieldt commented Sep 7, 2024

This patch takes inspiration from our I2CDetect code where we have many sensors that can be detected rather simply. It creates a new macro,
PROBE_SIMPLE(Chip name, Command to run, response, Driver, timeout)

and converts existing simple cases to use this macro.

This patch takes inspiration from our I2CDetect code where we have
many sensors that can be detected rather simply. It creates a new
macro,
PROBE_SIMPLE(Chip name, Command to run, response, Driver, timeout)

and converts existing simple cases to use this macro.
@fifieldt
Copy link
Contributor Author

fifieldt commented Sep 7, 2024

Not expecting any impact from this change since it's just moving code around, but for good measure I have tested on:
tbeam (ublox)
heltec-wireless-tracker (UC6580)
tracker-t1000-e (AG3335)
wio-tracker-wm1110 (L76K)

and it behaves exactly the same as before :)

@caveman99 caveman99 merged commit 56a2e40 into meshtastic:master Sep 7, 2024
104 checks passed
@fifieldt fifieldt deleted the gps-probe-macro branch September 19, 2024 10:55
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.

2 participants