Browse Source

STM32F1: No USBSerial without USB-serial bridge (#15242)

Tanguy Pruvot 5 years ago
parent
commit
f1162243f6
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/src/HAL/HAL_STM32F1/HAL.cpp
  2. 1
    1
      platformio.ini

+ 1
- 1
Marlin/src/HAL/HAL_STM32F1/HAL.cpp View File

@@ -82,7 +82,7 @@
82 82
 // Public Variables
83 83
 // ------------------------
84 84
 
85
-#if (!defined(SERIAL_USB) && !defined(USE_USB_COMPOSITE))
85
+#if (defined(SERIAL_USB) && !defined(USE_USB_COMPOSITE))
86 86
   USBSerial SerialUSB;
87 87
 #endif
88 88
 

+ 1
- 1
platformio.ini View File

@@ -362,7 +362,7 @@ board         = genericSTM32F103VE
362 362
 monitor_speed = 250000
363 363
 extra_scripts = buildroot/share/PlatformIO/scripts/longer_STM32.py
364 364
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
365
-  ${common.build_flags} -std=gnu++14
365
+  ${common.build_flags} -std=gnu++14 -USERIAL_USB
366 366
   -DSTM32F1xx -DU20 -DTS_V12
367 367
 build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
368 368
 src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>

Loading…
Cancel
Save