From 6a00edce30fcb3d2e637c53fe2a9fc68f4fd973d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 12:59:55 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index 5e973ff..cda752b 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -17,15 +17,6 @@ #include "SoftwareSerial.h" #include "rolling_code.h" -namespace esphome { -namespace ratgdo { - -SoftwareSerial swSerial; - -/********************************** BOOTSTRAP MANAGER - * *****************************************/ -BootstrapManager bootstrapManager; - /********************************** PIN DEFINITIONS * *****************************************/ #define OUTPUT_GDO \ @@ -44,6 +35,14 @@ BootstrapManager bootstrapManager; #define INPUT_RPM2 \ D2 // RPM2 rotary encoder input OR not used if using reed switch #define INPUT_OBST D7 // black obstruction sensor terminal +namespace esphome { +namespace ratgdo { + +SoftwareSerial swSerial; + +/********************************** BOOTSTRAP MANAGER + * *****************************************/ +BootstrapManager bootstrapManager; /********************************** MQTT TOPICS * *****************************************/