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

Remove heltec-specific gps code from main.cpp #4508

Merged

Conversation

fifieldt
Copy link
Contributor

@fifieldt fifieldt commented Aug 20, 2024

After the recent GPS power work we have an clear set of definitions for turning GPS on and off. Rather than manipulating specific heltec tracker-related pins in main setup, the relevant power management code in the GPS module will turn things on/off later as needed.

@fifieldt
Copy link
Contributor Author

Tested OK on heltec-wireless-tracker .

@fifieldt
Copy link
Contributor Author

failed unphone build appears unrelated to the patch:
"fatal: unable to access 'https://github.com/meshtastic/esp8266-oled-ssd1306.git/': GnuTLS recv error (-54): Error in the pull function."

@todd-herbert
Copy link
Contributor

That PIN_GPS_EN setup might already be taken care of too by the GPS class, although it'd be worth double checking!

It's a little bit convoluted:

@fifieldt
Copy link
Contributor Author

Thanks for checking. Yes, I believe it will be taken care of by the GPS class, I was just attempting to be conservative in changes :) Happy to delete this code from main entirely if that's the desired direction!

@fifieldt
Copy link
Contributor Author

Just checked - and deleting this code works just fine on the heltec-wireless-tracker.

@fifieldt fifieldt force-pushed the remove-gps-single-variant-defines branch from 62b04c3 to 44a3ba1 Compare August 20, 2024 08:35
@fifieldt
Copy link
Contributor Author

There. Let's be bold.

@fifieldt fifieldt force-pushed the remove-gps-single-variant-defines branch from 44a3ba1 to 03c2fa3 Compare August 20, 2024 08:41
@todd-herbert
Copy link
Contributor

There. Let's be bold.

Hopefully it's not too bold! It should only impact Wireless Tracker V1.0 (right?) and you've tested that one. 👍

After the recent GPS power work we have an clear set of
definitions for turning GPS on and off. Rather than manipulating
specific heltec tracker-related pins in main setu, the relevant
power management code in the GPS module will turn things
on/off later as needed.
@fifieldt fifieldt force-pushed the remove-gps-single-variant-defines branch from 03c2fa3 to 96474bc Compare August 20, 2024 08:50
@thebentern thebentern merged commit 3b2c37c into meshtastic:master Aug 20, 2024
100 checks passed
@fifieldt fifieldt deleted the remove-gps-single-variant-defines branch August 22, 2024 01:12
@S5NC
Copy link
Contributor

S5NC commented Aug 30, 2024

Can streamline https://github.com/search?q=repo%3Ameshtastic%2Ffirmware+VGNSS_CTRL&type=code

@S5NC S5NC mentioned this pull request Aug 30, 2024
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