From c9c8fc0a317bcb1dec464d2e68991951cae12719 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Sun, 21 Jun 2020 17:50:10 +0200 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D1=83=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C=D0=BD=D0=BE!!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/Global.h | 1 + src/Cmd.cpp | 3 +++ src/Global.cpp | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) 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