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
 //
34
 //
35
 // Includes
35
 // Includes
36
 //
36
 //
37
+#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
38
+
37
 #include "SoftwareSerial.h"
39
 #include "SoftwareSerial.h"
38
 #include "timers.h"
40
 #include "timers.h"
39
 
41
 
389
   // Read from "head"
391
   // Read from "head"
390
   return _receive_buffer[_receive_buffer_head];
392
   return _receive_buffer[_receive_buffer_head];
391
 }
393
 }
394
+
395
+#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

Loading…
Cancel
Save