chore: run the debug build's serial port at 921600

The debug build logs at info level, and each line holds up the task that
logs it for ~9ms at 115200.  At 921600 that drops to ~1ms.  SERIAL_BAUD
defaults to 115200, so the other envs are unchanged.  The ROM's boot
banner still prints at 115200 and shows as garbage in the monitor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cjkas 2026-10-21 20:18:55 +02:00
parent 63c2d180e0
commit 18f11929f3
2 changed files with 9 additions and 1 deletions

View file

@ -22,6 +22,10 @@
static const char *TAG = "Main";
#define LOOP_SLOW_MS 100
// platformio.ini can set its own, along with a matching monitor_speed.
#ifndef SERIAL_BAUD
#define SERIAL_BAUD 115200
#endif
// How long an updated firmware has to run, and then have the network up, before
// it is kept. A reset before then rolls back to the previous firmware.
#define OTA_PROVEN_MS 60000
@ -67,7 +71,7 @@ void listDir(const char *dirname, uint8_t levels) {
}
void setup() {
Serial.begin(115200);
Serial.begin(SERIAL_BAUD);
ESP_LOGI(TAG, "Startup/Boot....");
esp_core_dump_summary_t summary;
if (esp_core_dump_get_summary(&summary) == ESP_OK) {