display temp
This commit is contained in:
parent
6897fd497e
commit
fb06940cd1
@ -79,10 +79,10 @@ namespace Display {
|
|||||||
colonOn = !colonOn;
|
colonOn = !colonOn;
|
||||||
}
|
}
|
||||||
|
|
||||||
void displayFloat(float value) {
|
void displayTemp(float value) {
|
||||||
tDisplay.disable();
|
tDisplay.disable();
|
||||||
drawColon(false);
|
drawColon(false);
|
||||||
clockDisplay.print(value);
|
clockDisplay.printFloat(value);
|
||||||
clockDisplay.writeDisplay();
|
clockDisplay.writeDisplay();
|
||||||
drawTime();
|
drawTime();
|
||||||
tDisplay.enableDelayed(1000);
|
tDisplay.enableDelayed(1000);
|
||||||
|
|||||||
@ -76,7 +76,7 @@ namespace Ir {
|
|||||||
command("On");
|
command("On");
|
||||||
break;
|
break;
|
||||||
case 0x84:
|
case 0x84:
|
||||||
Display::displayFloat(Bmp::bmp.readTemperature());
|
Display::displayTemp(Bmp::bmp.readTemperature());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Display::displayValue(lastCommand);
|
Display::displayValue(lastCommand);
|
||||||
|
|||||||
@ -53,8 +53,8 @@ void checkWifiCallback() {
|
|||||||
if (difftime(now(), Ntp::lastConnectedTime) > STAY_CONNECTED_AFTER_BOOT) {
|
if (difftime(now(), Ntp::lastConnectedTime) > STAY_CONNECTED_AFTER_BOOT) {
|
||||||
Serial.println("Wifi connection timed out");
|
Serial.println("Wifi connection timed out");
|
||||||
Mqtt::client.disconnect();
|
Mqtt::client.disconnect();
|
||||||
Wifi::disconnect();
|
|
||||||
Ota::tLoop.disable();
|
Ota::tLoop.disable();
|
||||||
tCheckWifi.disable();
|
tCheckWifi.disable();
|
||||||
|
Wifi::disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user