Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Apr 21, 2024
1 parent 9270838 commit 5472f0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AppLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ AppLayer::decodeDownlink(uint8_t port, uint8_t *payload, size_t size)
return 0;
}

if ((port == CMD_GET_WS_TIMEOUT) && (payload[0] = 0x00) && (size == 1))
if ((port == CMD_GET_WS_TIMEOUT) && (payload[0] == 0x00) && (size == 1))
{
log_d("Get weathersensor_timeout");
return CMD_GET_WS_TIMEOUT;
Expand All @@ -74,7 +74,7 @@ AppLayer::decodeDownlink(uint8_t port, uint8_t *payload, size_t size)
appPrefs.end();
}

if ((port == CMD_GET_SENSORS_INC) && (payload[0] = 0x00) && (size == 1))
if ((port == CMD_GET_SENSORS_INC) && (payload[0] == 0x00) && (size == 1))
{
log_d("Get sensors include list");
return CMD_GET_SENSORS_INC;
Expand All @@ -95,7 +95,7 @@ AppLayer::decodeDownlink(uint8_t port, uint8_t *payload, size_t size)
return 0;
}

if ((port == CMD_GET_SENSORS_EXC) && (payload[0] = 0x00) && (size == 1))
if ((port == CMD_GET_SENSORS_EXC) && (payload[0] == 0x00) && (size == 1))
{
log_d("Get sensors exclude list");
return CMD_GET_SENSORS_EXC;
Expand Down

0 comments on commit 5472f0e

Please sign in to comment.