- Added debug-mode support
- to disable DebugOutput change debug_mode to 0
This commit is contained in:
ZanzyTHEbar 2022-09-05 12:37:57 +01:00
parent e4dc25a2a6
commit 6217195248
2 changed files with 7 additions and 3 deletions

View File

@ -11,6 +11,9 @@
[platformio]
default_envs = esp32Cam ; do not change this value
[debug_mode]
debug_mode = 1 ; 0 = off, 1 = on
; The below options are available for all environments
; The ssid and password are requried for the trackers to connect to your network!!!
[wifi]
@ -85,6 +88,8 @@ build_flags =
-DADHOC_CHANNEL=${wifi.adhocChannel} ;
-DWIFI_CHANNEL=${wifi.channel} ;
-DDEBUG_MODE=${debug_mode.debug_mode} ; Set the debug mode
'-DMDNS_TRACKER_NAME="OpenIrisTracker"' ; Set the tracker name - The string literal tells platformio to include the quatations in the string - making sure that the compiler sees the string as a cstring

View File

@ -8,8 +8,7 @@
#include <network/api/webserverHandler.hpp>
#include <logo/logo.hpp>
#include <data/config/project_config.hpp>
//#include <io/SerialManager/serialmanager.hpp> // Basic Serial Manager
//#include <io/SerialManager/SerialManager2/serialmanager.hpp // Advanced Serial MAnager //! Finish this to update the serial manager
//#include <io/SerialManager/serialmanager.hpp> // Serial Manager
#include <network/OTA/OTA.hpp>
@ -29,7 +28,7 @@ StreamServer streamServer(STREAM_SERVER_PORT);
void setup()
{
Serial.begin(115200);
Serial.setDebugOutput(true);
Serial.setDebugOutput(DEBUG_MODE);
Serial.println("\n");
Logo::printASCII();