From e52d52e1c7fc04e755ffc7a76669c3fca073ee96 Mon Sep 17 00:00:00 2001 From: Norbert Wilms Date: Sat, 7 Oct 2023 18:48:34 +0200 Subject: [PATCH] Update PubSubClient.cpp Change variable type (int to unsigned int) to avoid compiler warnings. --- src/PubSubClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PubSubClient.cpp b/src/PubSubClient.cpp index 2b48d2b6..25e74257 100755 --- a/src/PubSubClient.cpp +++ b/src/PubSubClient.cpp @@ -484,7 +484,7 @@ boolean PubSubClient::publish_P(const char* topic, const uint8_t* payload, unsig unsigned int i; uint8_t header; unsigned int len; - int expectedLength; + unsigned int expectedLength; if (!connected()) { return false;