Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Apr 18, 2024
1 parent 3f4bc91 commit 3b28be8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- esp32:esp32:m5stack-core2
- esp32:esp32:esp32s3_powerfeather
- esp32:esp32:adafruit_feather_esp32s2
#- rp2040:rp2040:adafruit_feather:dbgport=Serial
- rp2040:rp2040:adafruit_feather:dbgport=Serial

runs-on: ubuntu-latest
name: ${{ matrix.board }}
Expand Down
4 changes: 4 additions & 0 deletions src/AppLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ AppLayer::decodeDownlink(uint8_t *payload, size_t size)
log_d("Get BLE sensors MAC addresses");
return CMD_GET_BLE_ADDR;
}
#if defined(MITHERMOMETER_EN) || defined(THEENGSDECODER_EN)
else if ((payload[0] == CMD_SET_BLE_ADDR) && ((size - 1) % 6 == 0))
{
log_d("Set BLE sensors MAC addresses");
Expand All @@ -130,6 +131,7 @@ AppLayer::decodeDownlink(uint8_t *payload, size_t size)
}
setBleAddr(&payload[1], size - 1);
}
#endif
return 0;
}

Expand Down Expand Up @@ -574,6 +576,7 @@ void AppLayer::getConfigPayload(uint8_t cmd, uint8_t &port, LoraEncoder &encoder
encoder.writeUint8(payload[i]);
}
}
#if defined(MITHERMOMETER_EN) || defined(THEENGSDECODER_EN)
else if (cmd == CMD_GET_BLE_ADDR)
{
uint8_t payload[48];
Expand All @@ -583,6 +586,7 @@ void AppLayer::getConfigPayload(uint8_t cmd, uint8_t &port, LoraEncoder &encoder
encoder.writeUint8(payload[i]);
}
}
#endif
}

#if defined(MITHERMOMETER_EN) || defined(THEENGSDECODER_EN)
Expand Down
3 changes: 2 additions & 1 deletion src/AppLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class AppLayer
log_v("BLE Addresses:");
for(const std::string& s : knownBLEAddresses)
{
(void)s;
log_v("%s", s.c_str());
}
#endif
Expand Down Expand Up @@ -232,6 +233,6 @@ class AppLayer
* \returns BLE addresses
*/
std::vector<std::string> getBleAddr(void);
};
#endif
};
#endif // _APPLAYER_H

0 comments on commit 3b28be8

Please sign in to comment.