Skip to content

Commit 9dd1ced

Browse files
committed
mqtt: typo in sync client build
1 parent d90318d commit 9dd1ced

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

code/espurna/mqtt.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -1706,9 +1706,11 @@ void _mqttOnMessageAsync(char* raw_topic, char* raw_payload, AsyncMqttClientMess
17061706

17071707
void _mqttOnMessage(char* raw_topic, char* raw_payload, unsigned int len) {
17081708
auto topic = espurna::StringView{ raw_topic };
1709-
if (_mqttMaybeSkipRetained(topic)) return;
1709+
if (_mqttMaybeSkipRetained(topic)) {
1710+
return;
1711+
}
17101712

1711-
auto message = espurna::StringView{ payload, len };
1713+
auto message = espurna::StringView{ raw_payload, len };
17121714

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

0 commit comments

Comments
 (0)