Skip to content

Commit a2bdbac

Browse files
author
xdylanm
committed
format
1 parent b007806 commit a2bdbac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Adafruit_MQTT.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,8 @@ uint16_t Adafruit_MQTT::publishPacket(uint8_t *packet, const char *topic,
733733
// 2 + additionalLen: header byte + remaining length field (from 1 to 4 bytes)
734734
// len = topic size field + value (string)
735735
// bLen = buffer size
736-
if (!(maxPacketLen == 0 || (len + bLen + 2 + additionalLen <= maxPacketLen))) {
736+
if (!(maxPacketLen == 0 ||
737+
(len + bLen + 2 + additionalLen <= maxPacketLen))) {
737738
// If we make it here, we got a pickle: the payload is not going
738739
// to fit in the packet buffer. Instead of corrupting memory, let's
739740
// do something less damaging by reducing the bLen to what we are

0 commit comments

Comments
 (0)