Skip to content

Enable GPS time sync for ThinkNode M1 repeater builds 🤖🤖#2256

Open
TerryFrench wants to merge 1 commit intomeshcore-dev:devfrom
TerryFrench:feature/thinknode-m1-gps-repeater
Open

Enable GPS time sync for ThinkNode M1 repeater builds 🤖🤖#2256
TerryFrench wants to merge 1 commit intomeshcore-dev:devfrom
TerryFrench:feature/thinknode-m1-gps-repeater

Conversation

@TerryFrench
Copy link
Copy Markdown

Summary

  • Add PERSISTANT_GPS=1 and ENV_SKIP_GPS_DETECT=1 build flags to [env:ThinkNode_M1_repeater] in variants/thinknode_m1/platformio.ini
  • Ensures the GPS module is active from boot and automatically syncs the RTC clock
  • Same fix as Enable GPS time sync for Station G2 repeater builds 🤖🤖 #2255 (Station G2 repeater) — the ThinkNode M1 repeater has the same cold-start GPS detection problem

Details

The ThinkNode M1 has GPS hardware (pins 40/41, enable pin 34, reset pin 37) and its target.cpp creates a MicroNMEALocationProvider, but the repeater build lacks the flags to bypass the 1-second GPS detection window at boot. Cold-starting GPS modules miss this window, causing gps_detected=false and hiding all GPS CLI commands.

With these flags, GPS is assumed present and stays active, letting the existing MicroNMEALocationProvider sync the RTC automatically on fix (~30-90s) and re-sync every 30 minutes.

Relates to #1426

Community discussion

Change

Two build flags added to [env:ThinkNode_M1_repeater] in variants/thinknode_m1/platformio.ini

Testing

Not yet tested on physical ThinkNode M1 hardware — change is identical in nature to the Station G2 fix (#2255) which was verified on hardware.

🤖 Generated with Claude Code

Add PERSISTANT_GPS and ENV_SKIP_GPS_DETECT flags to the ThinkNode M1
repeater build so the GPS module is active from boot and automatically
syncs the RTC clock.

Without these flags, GPS detection fails on cold-starting GPS modules
that need more than 1 second to begin outputting NMEA data, causing
gps_detected=false and hiding all GPS CLI commands. The existing
MicroNMEALocationProvider already handles initial sync after fix
acquisition and periodic re-sync every 30 minutes - these flags just
ensure it is enabled.

Relates to meshcore-dev#1426

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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