From c06fe57358a866b0f5fc460553abf7724aeb2875 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 10 Apr 2022 18:12:58 +0200 Subject: [PATCH] Fix CI Build fail due to missing credentials --- Firmware/include/Credentials/CredentialManager.h | 7 +++++++ Firmware/platformio.ini | 11 ++++++++--- Firmware/src/main.cpp | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 Firmware/include/Credentials/CredentialManager.h diff --git a/Firmware/include/Credentials/CredentialManager.h b/Firmware/include/Credentials/CredentialManager.h new file mode 100644 index 0000000..3d78db0 --- /dev/null +++ b/Firmware/include/Credentials/CredentialManager.h @@ -0,0 +1,7 @@ +#ifndef DEBUG +#include +#endif +#ifdef DEBUG +#define WIFI_SSID "ssid" +#define WIFI_PW "password" +#endif \ No newline at end of file diff --git a/Firmware/platformio.ini b/Firmware/platformio.ini index de1fa0e..d2dc000 100644 --- a/Firmware/platformio.ini +++ b/Firmware/platformio.ini @@ -11,13 +11,18 @@ [platformio] default_envs = Upload_UART -[env:Upload_UART] +[env] platform = espressif32 board = az-delivery-devkit-v4 framework = arduino -upload_port = COM8 -monitor_port = COM8 lib_deps = erropix/ESP32 AnalogWrite@^0.2 ESP Async WebServer board_build.partitions = huge_app.csv + +[env:Upload_UART] +upload_port = COM8 +monitor_port = COM8 + +[env:CI_Build] +build_flags = -D DEBUG=1 \ No newline at end of file diff --git a/Firmware/src/main.cpp b/Firmware/src/main.cpp index 662f3ec..4078198 100644 --- a/Firmware/src/main.cpp +++ b/Firmware/src/main.cpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include const int STEPS = 5; const int WIFI_TIMEOUT = 20;