diff --git a/src/NerdMinerV2.ino.cpp b/src/NerdMinerV2.ino.cpp index 94e802f..5c0e4a7 100644 --- a/src/NerdMinerV2.ino.cpp +++ b/src/NerdMinerV2.ino.cpp @@ -38,7 +38,12 @@ const char* ntpServer = "pool.ntp.org"; /********* INIT *****/ void setup() { - Serial.begin(115200); +#ifdef MONITOR_SPEED + Serial.begin(MONITOR_SPEED); +#else + Serial.begin(115200); +#endif //MONITOR_SPEED + Serial.setTimeout(0); delay(100); diff --git a/src/wManager.cpp b/src/wManager.cpp index 51b5d27..4248f05 100644 --- a/src/wManager.cpp +++ b/src/wManager.cpp @@ -135,7 +135,11 @@ void configModeCallback(WiFiManager *myWiFiManager) void init_WifiManager() { - Serial.begin(115200); +#ifdef MONITOR_SPEED + Serial.begin(MONITOR_SPEED); +#else + Serial.begin(115200); +#endif //MONITOR_SPEED //Serial.setTxTimeoutMs(10); //Init pin 15 to eneble 5V external power (LilyGo bug)