From a9120b7d6928b26c0471e8f784472df5df2145ea Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 12:57:23 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index b4d6a22..5e973ff 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -17,6 +17,9 @@ #include "SoftwareSerial.h" #include "rolling_code.h" +namespace esphome { +namespace ratgdo { + SoftwareSerial swSerial; /********************************** BOOTSTRAP MANAGER @@ -124,4 +127,6 @@ byte DOOR_CODE[] = {0x55, 0x01, 0x00, 0x94, 0x3f, 0xef, 0xbc, 0xfb, 0x7f, 0xbe, byte LIGHT_CODE[] = {0x55, 0x01, 0x00, 0x94, 0x3f, 0xef, 0xbc, 0xfb, 0x7f, 0xbe, 0xff, 0xa6, 0x1a, 0x4d, 0xa6, 0xda, 0x8d, 0x76, 0xb1}; -#endif \ No newline at end of file +#endif +} +} \ No newline at end of file