From c6aba01c90d179df885a6397a4eed5ed7f3179cd Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 12:50:25 -0500 Subject: [PATCH] fix --- components/ratgdo/__init__.py | 5 +++++ components/ratgdo/ratgdo.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/components/ratgdo/__init__.py b/components/ratgdo/__init__.py index b58e61f..6b64bd6 100644 --- a/components/ratgdo/__init__.py +++ b/components/ratgdo/__init__.py @@ -23,3 +23,8 @@ async def to_code(config): await cg.register_component(var, config) # rolling_codes = await cg.get_variable(config[CONF_ROLLING_CODES]) # cg.add(var.set_microphone(mic)) + cg.add_library( + name="secplus", + repository="https://github.com/bdraco/secplus", + version="f98c3220356c27717a25102c0b35815ebbd26ccc", + ) \ No newline at end of file diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 2511147..41bf3bc 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -22,6 +22,7 @@ namespace ratgdo { static const char *const TAG = "ratgdo"; void RATGDOComponent::setup() { + swSerial.begin(9600, SWSERIAL_8N2, -1, OUTPUT_GDO, true); pinMode(TRIGGER_OPEN, INPUT_PULLUP); pinMode(TRIGGER_CLOSE, INPUT_PULLUP); pinMode(TRIGGER_LIGHT, INPUT_PULLUP);