mirror of
https://github.com/alexhopeoconnor/arduino-home-assistant.git
synced 2026-10-04 02:48:13 +10:00
fix tests (#227)
This commit is contained in:
+3
-1
@@ -312,7 +312,9 @@ void HAMqtt::connectToServer()
|
||||
true
|
||||
);
|
||||
|
||||
if (!isConnected()) {
|
||||
if (isConnected()) {
|
||||
setState(StateConnected);
|
||||
} else {
|
||||
ARDUINOHA_DEBUG_PRINTLN(F("AHA: failed to connect"))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ PubSubClientMock::PubSubClientMock() :
|
||||
_flushedMessages(nullptr),
|
||||
_keepAlive(15),
|
||||
_bufferSize(256),
|
||||
_state(0),
|
||||
_state(-1),
|
||||
_flushedMessagesNb(0),
|
||||
_subscriptions(nullptr),
|
||||
_subscriptionsNb(0),
|
||||
|
||||
Reference in New Issue
Block a user