From 2bbc96b30381bca7d840d0432f569f431543ccd9 Mon Sep 17 00:00:00 2001 From: Marcel Verdult Date: Fri, 13 Nov 2026 12:42:56 +0100 Subject: [PATCH 1/4] fix(heltec_t096): enable the 0x8B5 register patch like the Heltec V4 --- variants/heltec_t096/platformio.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/variants/heltec_t096/platformio.ini b/variants/heltec_t096/platformio.ini index 1f572fc9..36f04d4d 100644 --- a/variants/heltec_t096/platformio.ini +++ b/variants/heltec_t096/platformio.ini @@ -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 From f69fab7759ec413c3c56e2cc7c0cdef1eee9d8fd Mon Sep 17 00:00:00 2001 From: razze Date: Mon, 23 Nov 2026 03:07:47 +0100 Subject: [PATCH 2/4] Hide coordinates until GPS has a fix --- src/helpers/ui/companion-new/UITask.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helpers/ui/companion-new/UITask.cpp b/src/helpers/ui/companion-new/UITask.cpp index 652fef94..c364d512 100644 --- a/src/helpers/ui/companion-new/UITask.cpp +++ b/src/helpers/ui/companion-new/UITask.cpp @@ -442,12 +442,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) { @@ -476,6 +478,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"); From ebde355a6040938af6f95acce184185b47b0d8e7 Mon Sep 17 00:00:00 2001 From: Olivier Booklage Date: Mon, 23 Nov 2026 21:20:43 +0100 Subject: [PATCH 3/4] 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. --- variants/thinknode_m6/ThinkNodeM6Board.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/variants/thinknode_m6/ThinkNodeM6Board.cpp b/variants/thinknode_m6/ThinkNodeM6Board.cpp index f83f274f..cde7e70d 100644 --- a/variants/thinknode_m6/ThinkNodeM6Board.cpp +++ b/variants/thinknode_m6/ThinkNodeM6Board.cpp @@ -5,9 +5,28 @@ #include +// 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 From 9883dca41759c8ec9226998f04111e7456854177 Mon Sep 17 00:00:00 2001 From: Olivier Booklage Date: Mon, 23 Nov 2026 22:22:56 +0100 Subject: [PATCH 4/4] 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. --- variants/thinknode_m1/platformio.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/variants/thinknode_m1/platformio.ini b/variants/thinknode_m1/platformio.ini index 8be7e19c..56b23d68 100644 --- a/variants/thinknode_m1/platformio.ini +++ b/variants/thinknode_m1/platformio.ini @@ -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} + +