fix tests (#227)

This commit is contained in:
Dawid Chyrzyński
2024-02-09 20:31:15 +01:00
committed by GitHub
parent 77a356bb37
commit a838dac9c0
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -312,7 +312,9 @@ void HAMqtt::connectToServer()
true
);
if (!isConnected()) {
if (isConnected()) {
setState(StateConnected);
} else {
ARDUINOHA_DEBUG_PRINTLN(F("AHA: failed to connect"))
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ PubSubClientMock::PubSubClientMock() :
_flushedMessages(nullptr),
_keepAlive(15),
_bufferSize(256),
_state(0),
_state(-1),
_flushedMessagesNb(0),
_subscriptions(nullptr),
_subscriptionsNb(0),