Trailing spaces.

This commit is contained in:
Chris Giacofei 2021-09-13 08:24:19 -04:00
parent d37d82b9a1
commit 43133e6c20
2 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@
// Global variables. // Global variables.
byte kettle_duty = 0; byte kettle_duty = 0;
bool kettle_on = false; bool kettle_on = false;
// User I/O objects. // User I/O objects.
Button enter(encoderBTN); Button enter(encoderBTN);
MD_REncoder rotary = MD_REncoder(encoderDT, encoderCLK); MD_REncoder rotary = MD_REncoder(encoderDT, encoderCLK);
@ -74,7 +74,7 @@ MQTTClient mqtt_client;
unsigned long lastRun = 0; unsigned long lastRun = 0;
// Return a character array to represent the // Return a character array to represent the
// On/Off state of the kettle. // On/Off state of the kettle.
char* kettle_state() { char* kettle_state() {
if (kettle_on) { if (kettle_on) {
@ -145,7 +145,7 @@ void setup() {
menu.init(); menu.init();
menu.add_screen(home_screen); menu.add_screen(home_screen);
menu.update(); menu.update();
}; };
void update_boil_kettle(){ void update_boil_kettle(){
@ -172,11 +172,11 @@ void loop() {
update_boil_kettle(); update_boil_kettle();
unsigned long elapsedTime = (millis() - lastRun); unsigned long elapsedTime = (millis() - lastRun);
if (elapsedTime >= updateInterval) { if (elapsedTime >= updateInterval) {
mqtt_client.loop(); mqtt_client.loop();
//if (!mqtt_client.connected()) ConnectMQTT(); //if (!mqtt_client.connected()) ConnectMQTT();
sendSensorData(); sendSensorData();
lastRun = millis(); lastRun = millis();
} }

View File

@ -31,7 +31,7 @@ void MessageReceived(String &topic, String &payload) {
// Update PWM setpoint. // Update PWM setpoint.
String name = doc["entity"]; String name = doc["entity"];
String setting = doc["setpoint"]; String setting = doc["setpoint"];
kettle_duty = setting.toInt(); kettle_duty = setting.toInt();
String unit = doc["units"]; String unit = doc["units"];