Skip to content
Snippets Groups Projects
Commit bd321d4b authored by Lino Barreca's avatar Lino Barreca Committed by Scott Lahteine
Browse files

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

parent ac2d7ab1
Branches
Tags
No related merge requests found
......@@ -34,6 +34,8 @@
//
// Includes
//
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
#include "SoftwareSerial.h"
#include "timers.h"
......@@ -389,3 +391,5 @@ int SoftwareSerial::peek() {
// Read from "head"
return _receive_buffer[_receive_buffer_head];
}
#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment