diff --git a/platformio.ini b/platformio.ini index 816373ac..b78f387b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -189,6 +189,8 @@ board = rak815 debug_tool = jlink upload_protocol = jlink monitor_port = /dev/ttyUSB0 +; this board's serial chip can only run at 115200, not faster +monitor_speed = 115200 # For experimenting with RAM sizes # board_build.ldscript = linker/nrf52840_s140_sim832.ld diff --git a/src/configuration.h b/src/configuration.h index d51978af..18ea757a 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -297,7 +297,11 @@ along with this program. If not, see . // DEBUG // ----------------------------------------------------------------------------- +#ifdef CONSOLE_MAX_BAUD +#define SERIAL_BAUD CONSOLE_MAX_BAUD +#else #define SERIAL_BAUD 921600 // Serial debug baud rate +#endif #include "SerialConsole.h"