Skip to content

Commit

Permalink
mqtt: typo in sync client build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Sep 10, 2024
1 parent d90318d commit 9dd1ced
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/espurna/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1706,9 +1706,11 @@ void _mqttOnMessageAsync(char* raw_topic, char* raw_payload, AsyncMqttClientMess

void _mqttOnMessage(char* raw_topic, char* raw_payload, unsigned int len) {
auto topic = espurna::StringView{ raw_topic };
if (_mqttMaybeSkipRetained(topic)) return;
if (_mqttMaybeSkipRetained(topic)) {
return;
}

auto message = espurna::StringView{ payload, len };
auto message = espurna::StringView{ raw_payload, len };

if (len > 0 || len < mqtt::build::MessageLogMax) {
DEBUG_MSG_P(PSTR("[MQTT] Received %.*s => %.*s\n"),
Expand Down

0 comments on commit 9dd1ced

Please sign in to comment.