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 // Add code to get door state
settings.setDisableDoor(1); settings.setDisableDoor(1);
unlockDoor(1); unlockDoor(1);
Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled())); Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled() ? "Disabled" : "Enabled"));
} }
void commandEnableDoor() { void commandEnableDoor() {
// Add code to get door state // Add code to get door state
settings.setDisableDoor(0); settings.setDisableDoor(0);
lockDoor(); lockDoor();
Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled())); Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled() ? "Disabled" : "Enabled"));
} }
void commandDisabledState() { void commandDisabledState() {
// Add code to get door state // Add code to get door state
settings.setDisableDoor(0); settings.setDisableDoor(0);
unlockDoor(true); unlockDoor(true);
Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled())); Serial.println("DOOR_DISABLED_STATUS=" + String(settings.DoorDisabled() ? "Disabled" : "Enabled"));
} }