Better Status

This commit is contained in:
Matthew Frost 2023-10-30 19:40:06 +01:00
parent 752cdf3194
commit a7a897e66b

View file

@ -52,21 +52,21 @@ void commandDisableDoor() {
// Add code to get door state
settings.setDisableDoor(1);
unlockDoor(1);
Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled()));
Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled() ? "Disabled" : "Enabled"));
}
void commandEnableDoor() {
// Add code to get door state
settings.setDisableDoor(0);
lockDoor();
Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled()));
Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled() ? "Disabled" : "Enabled"));
}
void commandDisabledState() {
// Add code to get door state
settings.setDisableDoor(0);
unlockDoor(true);
Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled()));
Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled() ? "Disabled" : "Enabled"));
}