mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-04 22:19:00 +00:00
backUpDigiMode and BME for HWSL v3 fix
This commit is contained in:
parent
9521a357b1
commit
61db6c3132
2 changed files with 7 additions and 7 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue