From 19ac5d58bd71aa69cfdc39b03fd16f7d16fcd5bc Mon Sep 17 00:00:00 2001 From: Bascy Date: Tue, 16 Mar 2021 21:02:00 +0100 Subject: [PATCH 1/2] Initialize callback to nullptr --- src/PubSubClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PubSubClient.h b/src/PubSubClient.h index c70d9fd3..70fde71f 100755 --- a/src/PubSubClient.h +++ b/src/PubSubClient.h @@ -96,7 +96,7 @@ class PubSubClient : public Print { unsigned long lastOutActivity; unsigned long lastInActivity; bool pingOutstanding; - MQTT_CALLBACK_SIGNATURE; + MQTT_CALLBACK_SIGNATURE = nullptr; uint32_t readPacket(uint8_t*); boolean readByte(uint8_t * result); boolean readByte(uint8_t * result, uint16_t * index); From aaaef7aaed638c42059a06327634f2243994260e Mon Sep 17 00:00:00 2001 From: Bascy Date: Fri, 19 Mar 2021 16:44:09 +0100 Subject: [PATCH 2/2] Update PubSubClient.h Changed nullptr in NULL --- src/PubSubClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PubSubClient.h b/src/PubSubClient.h index 70fde71f..6d34e5a2 100755 --- a/src/PubSubClient.h +++ b/src/PubSubClient.h @@ -96,7 +96,7 @@ class PubSubClient : public Print { unsigned long lastOutActivity; unsigned long lastInActivity; bool pingOutstanding; - MQTT_CALLBACK_SIGNATURE = nullptr; + MQTT_CALLBACK_SIGNATURE = NULL; uint32_t readPacket(uint8_t*); boolean readByte(uint8_t * result); boolean readByte(uint8_t * result, uint16_t * index);