mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-09 01:04:30 +00:00
fix: maybe
This commit is contained in:
parent
efdb070771
commit
e52e3f0101
@ -133,8 +133,7 @@ namespace ratgdo {
|
|||||||
this->input_obst_pin_->attach_interrupt(RATGDOStore::isrObstruction, &this->store_, gpio::INTERRUPT_ANY_EDGE);
|
this->input_obst_pin_->attach_interrupt(RATGDOStore::isrObstruction, &this->store_, gpio::INTERRUPT_ANY_EDGE);
|
||||||
|
|
||||||
ESP_LOGD(TAG, "Syncing rolling code counter after reboot...");
|
ESP_LOGD(TAG, "Syncing rolling code counter after reboot...");
|
||||||
sync(); // if rolling codes are being used (rolling code counter > 0), send
|
sync(); // reboot/sync to the opener on startup
|
||||||
// reboot/sync to the opener on startup
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RATGDOComponent::loop()
|
void RATGDOComponent::loop()
|
||||||
@ -150,7 +149,6 @@ namespace ratgdo {
|
|||||||
void RATGDOComponent::dump_config()
|
void RATGDOComponent::dump_config()
|
||||||
{
|
{
|
||||||
ESP_LOGCONFIG(TAG, "Setting up RATGDO...");
|
ESP_LOGCONFIG(TAG, "Setting up RATGDO...");
|
||||||
sync();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RATGDOComponent::readRollingCode(uint8_t& door, uint8_t& light, uint8_t& lock, uint8_t& motion, uint8_t& obstruction)
|
void RATGDOComponent::readRollingCode(uint8_t& door, uint8_t& light, uint8_t& lock, uint8_t& motion, uint8_t& obstruction)
|
||||||
|
@ -60,7 +60,7 @@ namespace ratgdo {
|
|||||||
void dump_config() override;
|
void dump_config() override;
|
||||||
/********************************** GLOBAL VARS
|
/********************************** GLOBAL VARS
|
||||||
* *****************************************/
|
* *****************************************/
|
||||||
unsigned int rollingCodeCounter;
|
uint32_t rollingCodeCounter;
|
||||||
uint8_t txRollingCode[CODE_LENGTH];
|
uint8_t txRollingCode[CODE_LENGTH];
|
||||||
uint8_t rxRollingCode[CODE_LENGTH];
|
uint8_t rxRollingCode[CODE_LENGTH];
|
||||||
String doorStates[6] = { "unknown", "open", "closed", "stopped", "opening", "closing" };
|
String doorStates[6] = { "unknown", "open", "closed", "stopped", "opening", "closing" };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user