Trailing spaces.
This commit is contained in:
parent
d37d82b9a1
commit
43133e6c20
@ -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();
|
||||
}
|
||||
|
@ -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"];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user