Skip to content

Commit 1758f49

Browse files
committed
MQTT Client: Silence the MQTT Client start message
1 parent da88ba5 commit 1758f49

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Firmware/RTK_Everywhere/MQTT_Client.ino

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,14 @@ void mqttClientShutdown()
407407
// Start the MQTT client
408408
void mqttClientStart()
409409
{
410-
// Display the heap state
411-
reportHeapNow(settings.debugMqttClientState);
410+
if (settings.debugMqttClientState)
411+
{
412+
// Display the heap state
413+
reportHeapNow(settings.debugMqttClientState);
412414

413-
// Start the MQTT client
414-
systemPrintln("MQTT Client start");
415+
// Start the MQTT client
416+
systemPrintln("MQTT Client start");
417+
}
415418
mqttClientStop(false);
416419
}
417420

0 commit comments

Comments
 (0)