Compare commits

...
Author SHA1 Message Date
upstream-sync-bot 388d9064e8 Merge upstream/dev (8 commits) [upstream-sync] 2026-11-25 17:05:40 +00:00
fdlamotte 04efa6d119 Merge pull request #3912 from razzeee/fix/companion-gps-no-fix
Hide coordinates until GPS has a fix
2026-11-25 09:01:48 -04:00
fdlamotte 19fb356e85 Merge pull request #3926 from obook/m6-i2c-bus-recovery
fix(thinknode_m6): Free the I2C bus before probing the RTC
2026-11-25 08:59:11 -04:00
fdlamotte 8322949af8 Merge pull request #3929 from obook/m1-usb-gps
feat(thinknode_m1): Enable the GPS on the USB companion
2026-11-25 08:52:38 -04:00
fdlamotte b9054f61a4 Merge pull request #3835 from marcelverdult/claude/t096-register-patch-upstream
fix(heltec_t096): enable the 0x8B5 register patch like the Heltec V4
2026-11-25 08:50:30 -04:00
Olivier Booklage 9883dca417 feat(thinknode_m1): Enable the GPS on the USB companion
The BLE build got it in cfa985d2. The USB build runs on the same
hardware.
2026-11-23 22:22:56 +01:00
Olivier Booklage ebde355a60 fix(thinknode_m6): Free the I2C bus before probing the RTC
A reset during an RTC read left SDA held low, and the RTC probe then
hung every boot. Up to nine clock pulses release the bus.
2026-11-23 21:20:43 +01:00
razze f69fab7759 Hide coordinates until GPS has a fix 2026-11-23 03:31:10 +01:00
Marcel Verdult 2bbc96b303 fix(heltec_t096): enable the 0x8B5 register patch like the Heltec V4 2026-11-13 12:54:36 +01:00
4 changed files with 24 additions and 0 deletions

No files matched your search

+3
View File
@@ -456,12 +456,14 @@ public:
bool hw_gps_state = nmea != NULL && nmea->isHardwareEnabled();
uint32_t period = nmea != NULL ? nmea->getGpsPeriod() : 0;
char fix_buf[12] = "";
bool hasFix = false;
if (nmea != NULL) {
uint32_t fix_age = nmea->getLastFixAge();
if (fix_age == UINT32_MAX) {
strcpy(fix_buf, "no fix");
} else {
formatFixAge(fix_buf, sizeof(fix_buf), fix_age);
hasFix = true;
}
}
if (nmea != NULL && nmea->hasHardwareEnableState() && gps_state != hw_gps_state) {
@@ -490,6 +492,7 @@ public:
display.setColor(UIColor::primary_txt);
sprintf(buf, "%d", nmea->satellitesCount());
display.drawTextRightAlign(display.width()-1, y, buf);
if (!hasFix) return 5000;
y = y + 12;
display.setColor(UIColor::secondary_txt);
display.drawTextLeftAlign(0, y, "pos");
+1
View File
@@ -28,6 +28,7 @@ build_flags = ${nrf52_base.build_flags}
-D SX126X_DIO3_TCXO_VOLTAGE=1.8
-D SX126X_CURRENT_LIMIT=140
-D SX126X_RX_BOOSTED_GAIN=1
-D SX126X_REGISTER_PATCH=1 ; Patch register 0x8B5 for improved RX
-D PIN_VEXT_EN=26 ; Vext is connected to VDD which is also connected to TFT & GPS
-D PIN_VEXT_EN_ACTIVE=HIGH
-D PIN_GPS_RX=25
+1
View File
@@ -130,6 +130,7 @@ build_flags =
-D PIN_BUZZER=6
-D AUTO_SHUTDOWN_MILLIVOLTS=3300
-D ENABLE_USB_INTERFACE
-D ENV_INCLUDE_GPS=1
build_src_filter = ${ThinkNode_M1.build_src_filter}
+<helpers/ui/GxEPDDisplay.cpp>
+<helpers/ui/buzzer.cpp>
@@ -5,9 +5,28 @@
#include <Wire.h>
// A reset in the middle of an RTC read can leave the RTC holding SDA low,
// and the RTC probe at boot then hangs forever. Up to nine clock pulses let
// it finish its byte and release the bus.
static void recoverI2cBus() {
pinMode(PIN_WIRE_SDA, INPUT_PULLUP);
pinMode(PIN_WIRE_SCL, INPUT_PULLUP);
MESH_DEBUG_PRINTLN("I2C at boot: SDA=%d SCL=%d", digitalRead(PIN_WIRE_SDA), digitalRead(PIN_WIRE_SCL));
pinMode(PIN_WIRE_SCL, OUTPUT);
digitalWrite(PIN_WIRE_SCL, HIGH);
for (int i = 0; i < 9 && digitalRead(PIN_WIRE_SDA) == LOW; i++) {
digitalWrite(PIN_WIRE_SCL, LOW);
delayMicroseconds(5);
digitalWrite(PIN_WIRE_SCL, HIGH);
delayMicroseconds(5);
}
pinMode(PIN_WIRE_SCL, INPUT_PULLUP);
}
void ThinkNodeM6Board::begin() {
NRF52Board::begin();
recoverI2cBus();
Wire.begin();
#ifdef P_LORA_TX_LED