From f1162243f602aa45913996a8fd870efc4d5f5902 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 13 Sep 2019 00:59:31 +0200 Subject: [PATCH] STM32F1: No USBSerial without USB-serial bridge (#15242) --- Marlin/src/HAL/HAL_STM32F1/HAL.cpp | 2 +- platformio.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/HAL/HAL_STM32F1/HAL.cpp b/Marlin/src/HAL/HAL_STM32F1/HAL.cpp index fd0c4a27a..7e91a39f4 100644 --- a/Marlin/src/HAL/HAL_STM32F1/HAL.cpp +++ b/Marlin/src/HAL/HAL_STM32F1/HAL.cpp @@ -82,7 +82,7 @@ // Public Variables // ------------------------ -#if (!defined(SERIAL_USB) && !defined(USE_USB_COMPOSITE)) +#if (defined(SERIAL_USB) && !defined(USE_USB_COMPOSITE)) USBSerial SerialUSB; #endif diff --git a/platformio.ini b/platformio.ini index 83019cd02..c6ae62e1f 100644 --- a/platformio.ini +++ b/platformio.ini @@ -362,7 +362,7 @@ board = genericSTM32F103VE monitor_speed = 250000 extra_scripts = buildroot/share/PlatformIO/scripts/longer_STM32.py build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py - ${common.build_flags} -std=gnu++14 + ${common.build_flags} -std=gnu++14 -USERIAL_USB -DSTM32F1xx -DU20 -DTS_V12 build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6 src_filter = ${common.default_src_filter} +