From 5aef07d611df9ad03b31de1435bf2cc8db89a715 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 20:37:27 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.cpp | 6 ++++++ components/ratgdo/ratgdo.h | 1 + 2 files changed, 7 insertions(+) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index a80cf4a..2f097cd 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -147,6 +147,12 @@ namespace ratgdo { // ESP_LOGD(TAG, "Door State: %s", this->doorState.c_str()); } + 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) { uint32_t rolling = 0; diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index bceb093..cf03bb9 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -57,6 +57,7 @@ namespace ratgdo { public: void setup() override; void loop() override; + void dump_config() override; /********************************** GLOBAL VARS * *****************************************/ unsigned int rollingCodeCounter;