Better Status
This commit is contained in:
parent
752cdf3194
commit
a7a897e66b
1 changed files with 3 additions and 3 deletions
|
@ -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"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue