Skip to content

Commit

Permalink
backUpDigiMode and BME for HWSL v3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed Aug 13, 2024
1 parent 9521a35 commit 61db6c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/bme_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/digi_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 61db6c3

Please sign in to comment.