mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
update
- Added debug-mode support - to disable DebugOutput change debug_mode to 0
This commit is contained in:
parent
e4dc25a2a6
commit
6217195248
@ -11,6 +11,9 @@
|
|||||||
[platformio]
|
[platformio]
|
||||||
default_envs = esp32Cam ; do not change this value
|
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 below options are available for all environments
|
||||||
; The ssid and password are requried for the trackers to connect to your network!!!
|
; The ssid and password are requried for the trackers to connect to your network!!!
|
||||||
[wifi]
|
[wifi]
|
||||||
@ -86,6 +89,8 @@ build_flags =
|
|||||||
|
|
||||||
-DWIFI_CHANNEL=${wifi.channel} ;
|
-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
|
'-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
|
||||||
|
|
||||||
'-DOTA_PASSWORD=${wifi.OTAPassword}' ; Set the OTA password
|
'-DOTA_PASSWORD=${wifi.OTAPassword}' ; Set the OTA password
|
||||||
|
|||||||
@ -8,8 +8,7 @@
|
|||||||
#include <network/api/webserverHandler.hpp>
|
#include <network/api/webserverHandler.hpp>
|
||||||
#include <logo/logo.hpp>
|
#include <logo/logo.hpp>
|
||||||
#include <data/config/project_config.hpp>
|
#include <data/config/project_config.hpp>
|
||||||
//#include <io/SerialManager/serialmanager.hpp> // Basic Serial Manager
|
//#include <io/SerialManager/serialmanager.hpp> // Serial Manager
|
||||||
//#include <io/SerialManager/SerialManager2/serialmanager.hpp // Advanced Serial MAnager //! Finish this to update the serial manager
|
|
||||||
|
|
||||||
#include <network/OTA/OTA.hpp>
|
#include <network/OTA/OTA.hpp>
|
||||||
|
|
||||||
@ -29,7 +28,7 @@ StreamServer streamServer(STREAM_SERVER_PORT);
|
|||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
Serial.setDebugOutput(true);
|
Serial.setDebugOutput(DEBUG_MODE);
|
||||||
Serial.println("\n");
|
Serial.println("\n");
|
||||||
Logo::printASCII();
|
Logo::printASCII();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user