diff --git a/include/Global.h b/include/Global.h index 556ac2c5..872712a9 100644 --- a/include/Global.h +++ b/include/Global.h @@ -13,6 +13,7 @@ #include "Errors.h" #include "GyverFilters.h" #include "UptimeInterval.h" + #include "Utils\FileUtils.h" #include "Utils\JsonUtils.h" #include "Utils\StringUtils.h" diff --git a/src/Cmd.cpp b/src/Cmd.cpp index 8ddfb8b9..189a6b6f 100644 --- a/src/Cmd.cpp +++ b/src/Cmd.cpp @@ -1,5 +1,8 @@ #include "Global.h" +boolean but[NUM_BUTTONS]; +Bounce *buttons = new Bounce[NUM_BUTTONS]; + Servo myServo1; Servo myServo2; diff --git a/src/Global.cpp b/src/Global.cpp index 27ea46bf..2d5160c3 100644 --- a/src/Global.cpp +++ b/src/Global.cpp @@ -21,8 +21,7 @@ AsyncWebServer server(80); DallasTemperature sensors; -boolean but[NUM_BUTTONS]; -Bounce *buttons = new Bounce[NUM_BUTTONS]; + /* * Global vars