fix: maybe

This commit is contained in:
J. Nick Koston 2023-06-05 20:57:12 -05:00
parent efdb070771
commit e52e3f0101
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View File

@ -133,8 +133,7 @@ namespace ratgdo {
this->input_obst_pin_->attach_interrupt(RATGDOStore::isrObstruction, &this->store_, gpio::INTERRUPT_ANY_EDGE);
ESP_LOGD(TAG, "Syncing rolling code counter after reboot...");
sync(); // if rolling codes are being used (rolling code counter > 0), send
// reboot/sync to the opener on startup
sync(); // reboot/sync to the opener on startup
}
void RATGDOComponent::loop()
@ -150,7 +149,6 @@ namespace ratgdo {
void RATGDOComponent::dump_config()
{
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)

View File

@ -60,7 +60,7 @@ namespace ratgdo {
void dump_config() override;
/********************************** GLOBAL VARS
* *****************************************/
unsigned int rollingCodeCounter;
uint32_t rollingCodeCounter;
uint8_t txRollingCode[CODE_LENGTH];
uint8_t rxRollingCode[CODE_LENGTH];
String doorStates[6] = { "unknown", "open", "closed", "stopped", "opening", "closing" };