From 61db6c3132fd9a7c1bb7840ebe71bfb1a77f8010 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Tue, 13 Aug 2024 17:56:27 -0400 Subject: [PATCH] backUpDigiMode and BME for HWSL v3 fix --- src/bme_utils.cpp | 12 ++++++------ src/digi_utils.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bme_utils.cpp b/src/bme_utils.cpp index 6f13538d..0d1f5515 100644 --- a/src/bme_utils.cpp +++ b/src/bme_utils.cpp @@ -58,12 +58,12 @@ namespace BME_Utils { if (wxModuleAddress != 0x00) { bool wxModuleFound = false; if (wxModuleAddress == 0x76 || wxModuleAddress == 0x77) { - #ifdef HELTEC_V3 - if (bme280.begin(wxModuleAddress, &Wire1)) { - Serial.println("BME280 sensor found"); - wxModuleType = 1; - wxModuleFound = true; - } + #if defined(HELTEC_V3) || defined(HELTEC_WSL_V3) || defined(HELTEC_WSL_V3_DISPLAY) + if (bme280.begin(wxModuleAddress, &Wire1)) { + Serial.println("BME280 sensor found"); + wxModuleType = 1; + wxModuleFound = true; + } #else if (bme280.begin(wxModuleAddress)) { Serial.println("BME280 sensor found"); diff --git a/src/digi_utils.cpp b/src/digi_utils.cpp index c09b2d8e..c64e7840 100644 --- a/src/digi_utils.cpp +++ b/src/digi_utils.cpp @@ -62,7 +62,7 @@ namespace DIGI_Utils { } if (temp.indexOf(",") > 2) { // checks for path const String& path = temp.substring(temp.indexOf(",") + 1); // after tocall - if (Config.digi.mode == 2 && path.indexOf("WIDE1-1") != - 1) { + if ((Config.digi.mode == 2 || backUpDigiMode) && path.indexOf("WIDE1-1") != - 1) { return buildPacket(path, packet, thirdParty); } else if (Config.digi.mode == 3) { int wide1Index = path.indexOf("WIDE1-1");