baud rate set by build flag, if available

This commit is contained in:
elmo128 2023-09-12 04:06:01 +02:00
parent fa6f97d7c8
commit 5365ebf8ec
2 changed files with 11 additions and 2 deletions

View File

@ -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);

View File

@ -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)