fix
This commit is contained in:
parent
664fb1ce8f
commit
0f81c21983
|
@ -471,12 +471,9 @@ namespace ratgdo {
|
||||||
{
|
{
|
||||||
getRollingCode("door1");
|
getRollingCode("door1");
|
||||||
transmit(this->txRollingCode);
|
transmit(this->txRollingCode);
|
||||||
|
|
||||||
delay(40);
|
delay(40);
|
||||||
|
|
||||||
getRollingCode("door2");
|
getRollingCode("door2");
|
||||||
transmit(this->txRollingCode);
|
transmit(this->txRollingCode);
|
||||||
|
|
||||||
this->pref_.save(&this->rollingCodeCounter);
|
this->pref_.save(&this->rollingCodeCounter);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -498,9 +495,7 @@ namespace ratgdo {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RATGDOComponent::toggleLight(){
|
void RATGDOComponent::toggleLight(){
|
||||||
getRollingCode("light");
|
sendCommand("light");
|
||||||
transmit(this->txRollingCode);
|
|
||||||
this->pref_.save(&this->rollingCodeCounter);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lock functions
|
// Lock functions
|
||||||
|
@ -521,7 +516,11 @@ namespace ratgdo {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RATGDOComponent::toggleLock(){
|
void RATGDOComponent::toggleLock(){
|
||||||
getRollingCode("lock");
|
sendCommand("lock");
|
||||||
|
}
|
||||||
|
|
||||||
|
void RATGDOComponent::sendCommand(const char* command){
|
||||||
|
getRollingCode(command);
|
||||||
transmit(this->txRollingCode);
|
transmit(this->txRollingCode);
|
||||||
this->pref_.save(&this->rollingCodeCounter);
|
this->pref_.save(&this->rollingCodeCounter);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue