Don't compile STM32 SoftwareSerial unless STM32 (#15894)
This commit is contained in:
parent
ac2d7ab14c
commit
bd321d4b7c
|
@ -34,6 +34,8 @@
|
||||||
//
|
//
|
||||||
// Includes
|
// Includes
|
||||||
//
|
//
|
||||||
|
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
|
||||||
|
|
||||||
#include "SoftwareSerial.h"
|
#include "SoftwareSerial.h"
|
||||||
#include "timers.h"
|
#include "timers.h"
|
||||||
|
|
||||||
|
@ -389,3 +391,5 @@ int SoftwareSerial::peek() {
|
||||||
// Read from "head"
|
// Read from "head"
|
||||||
return _receive_buffer[_receive_buffer_head];
|
return _receive_buffer[_receive_buffer_head];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC
|
||||||
|
|
Loading…
Reference in a new issue