From 43133e6c20f8a924da3984e4c08c6902089e269e Mon Sep 17 00:00:00 2001 From: Chris Giacofei Date: Mon, 13 Sep 2021 08:24:19 -0400 Subject: [PATCH] Trailing spaces. --- boil_kettle/boil_kettle.ino | 10 +++++----- boil_kettle/mqtt.ino | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/boil_kettle/boil_kettle.ino b/boil_kettle/boil_kettle.ino index de18ded..8ee430f 100644 --- a/boil_kettle/boil_kettle.ino +++ b/boil_kettle/boil_kettle.ino @@ -56,7 +56,7 @@ // Global variables. byte kettle_duty = 0; bool kettle_on = false; - + // User I/O objects. Button enter(encoderBTN); MD_REncoder rotary = MD_REncoder(encoderDT, encoderCLK); @@ -74,7 +74,7 @@ MQTTClient mqtt_client; unsigned long lastRun = 0; -// Return a character array to represent the +// Return a character array to represent the // On/Off state of the kettle. char* kettle_state() { if (kettle_on) { @@ -145,7 +145,7 @@ void setup() { menu.init(); menu.add_screen(home_screen); menu.update(); - + }; void update_boil_kettle(){ @@ -172,11 +172,11 @@ void loop() { update_boil_kettle(); unsigned long elapsedTime = (millis() - lastRun); - + if (elapsedTime >= updateInterval) { mqtt_client.loop(); //if (!mqtt_client.connected()) ConnectMQTT(); - + sendSensorData(); lastRun = millis(); } diff --git a/boil_kettle/mqtt.ino b/boil_kettle/mqtt.ino index 26f0cf7..7c9e4e6 100644 --- a/boil_kettle/mqtt.ino +++ b/boil_kettle/mqtt.ino @@ -31,7 +31,7 @@ void MessageReceived(String &topic, String &payload) { // Update PWM setpoint. String name = doc["entity"]; String setting = doc["setpoint"]; - + kettle_duty = setting.toInt(); String unit = doc["units"];