From 6579fe51ad06f797476d601e6b9d418e12303bd7 Mon Sep 17 00:00:00 2001 From: Ted Hess Date: Mon, 11 Dec 2017 12:48:36 -0500 Subject: [PATCH] Allow BAUDRATE override by build opts --- Firmware/Configuration.h | 2 ++ platformio.ini | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Firmware/Configuration.h b/Firmware/Configuration.h index 355ad57e3..3c0bd4c68 100644 --- a/Firmware/Configuration.h +++ b/Firmware/Configuration.h @@ -100,7 +100,9 @@ #define SERIAL_PORT 0 // This determines the communication speed of the printer +#ifndef BAUDRATE #define BAUDRATE 115200 +#endif // This enables the serial port associated to the Bluetooth interface //#define BTENABLED // Enable BT interface on AT90USB devices diff --git a/platformio.ini b/platformio.ini index b916dfe4b..2fc9669d8 100644 --- a/platformio.ini +++ b/platformio.ini @@ -29,7 +29,7 @@ platform = atmelavr board = reprap_rambo framework = arduino board_f_cpu = 16000000L -build_flags = -I$BUILDSRC_DIR -Wall -Wextra +build_flags = -DBAUDRATE=250000 -I$BUILDSRC_DIR -Wall -Wextra ; Not needed for Prusa-Firmware ;extra_scripts = ./generate_version_header_for_marlin.py ;build_flags = -DUSE_AUTOMATIC_VERSIONING -I$BUILDSRC_DIR -Wall -Wextra