Skip to content

Commit

Permalink
Fixed decoding of CMD_GET_BLE_CONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Apr 28, 2024
1 parent 4356b67 commit 73a623b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/AppLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,15 @@ AppLayer::decodeDownlink(uint8_t port, uint8_t *payload, size_t size)
payload[i + 3]);
}
weatherSensor.setSensorsExc(payload, size);
return 0;
}

#if defined(MITHERMOMETER_EN) || defined(THEENGSDECODER_EN)
if ((port == CMD_GET_BLE_CONFIG) && (payload == 0x00) && (size == 1)) {
if ((port == CMD_GET_BLE_CONFIG) && (payload[0] == 0x00) && (size == 1)) {
log_d("Get BLE config");
return CMD_GET_BLE_CONFIG;
}

if ((port == CMD_SET_BLE_CONFIG) && (size == 2))
{
appPrefs.begin("BWS-LW-APP", false);
Expand Down

0 comments on commit 73a623b

Please sign in to comment.