Browse Source

Don't compile STM32 SoftwareSerial unless STM32 (#15894)

Lino Barreca 5 years ago
parent
commit
bd321d4b7c
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Marlin/src/HAL/HAL_STM32/SoftwareSerial.cpp

+ 4
- 0
Marlin/src/HAL/HAL_STM32/SoftwareSerial.cpp View File

@@ -34,6 +34,8 @@
34 34
 //
35 35
 // Includes
36 36
 //
37
+#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
38
+
37 39
 #include "SoftwareSerial.h"
38 40
 #include "timers.h"
39 41
 
@@ -389,3 +391,5 @@ int SoftwareSerial::peek() {
389 391
   // Read from "head"
390 392
   return _receive_buffer[_receive_buffer_head];
391 393
 }
394
+
395
+#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

Loading…
Cancel
Save