This commit is contained in:
J. Nick Koston 2023-06-09 15:13:24 -05:00
parent c8aa2ed95d
commit 94e8a1d389
No known key found for this signature in database
1 changed files with 12 additions and 12 deletions

View File

@ -145,7 +145,7 @@ namespace ratgdo {
printRollingCode(); printRollingCode();
if (command != Commands.DOOR1) { // door2 is created with same counter and should always be called after door1 if (command != Command.DOOR1) { // door2 is created with same counter and should always be called after door1
incrementRollingCodeCounter(); incrementRollingCodeCounter();
} }
return; return;
@ -316,7 +316,7 @@ namespace ratgdo {
void RATGDOComponent::query() void RATGDOComponent::query()
{ {
this->forceUpdate_ = true; this->forceUpdate_ = true;
sendCommandAndSaveCounter(Commands.REBOOT2); sendCommandAndSaveCounter(Command.REBOOT2);
} }
void RATGDOComponent::sendDoorStatus() void RATGDOComponent::sendDoorStatus()
@ -398,22 +398,22 @@ namespace ratgdo {
void RATGDOComponent::sync() void RATGDOComponent::sync()
{ {
transmit(Commands.REBOOT1); transmit(Command.REBOOT1);
delay(65); delay(65);
transmit(Commands.REBOOT2); transmit(Command.REBOOT2);
delay(65); delay(65);
transmit(Commands.REBOOT3); transmit(Command.REBOOT3);
delay(65); delay(65);
transmit(Commands.REBOOT4); transmit(Command.REBOOT4);
delay(65); delay(65);
transmit(Commands.REBOOT5); transmit(Command.REBOOT5);
delay(65); delay(65);
sendCommandAndSaveCounter(Commands.REBOOT6); sendCommandAndSaveCounter(Command.REBOOT6);
delay(65); delay(65);
} }
@ -446,9 +446,9 @@ namespace ratgdo {
void RATGDOComponent::toggleDoor() void RATGDOComponent::toggleDoor()
{ {
transmit(Commands.DOOR1); transmit(Command.DOOR1);
delay(40); delay(40);
sendCommandAndSaveCounter(Commands.DOOR2); sendCommandAndSaveCounter(Command.DOOR2);
} }
bool RATGDOComponent::isLightOn() bool RATGDOComponent::isLightOn()
@ -482,7 +482,7 @@ namespace ratgdo {
void RATGDOComponent::toggleLight() void RATGDOComponent::toggleLight()
{ {
sendCommandAndSaveCounter(Commands.LIGHT); sendCommandAndSaveCounter(Command.LIGHT);
} }
// Lock functions // Lock functions
@ -506,7 +506,7 @@ namespace ratgdo {
void RATGDOComponent::toggleLock() void RATGDOComponent::toggleLock()
{ {
sendCommandAndSaveCounter(Commands.LOCK); sendCommandAndSaveCounter(Command.LOCK);
} }
void RATGDOComponent::sendCommandAndSaveCounter(command command) void RATGDOComponent::sendCommandAndSaveCounter(command command)