Skip to content

Commit

Permalink
Don't compile STM32 SoftwareSerial unless STM32 (#15894)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinoBarreca authored and thinkyhead committed Nov 14, 2019
1 parent ac2d7ab commit bd321d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Marlin/src/HAL/HAL_STM32/SoftwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
//
// Includes
//
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)

#include "SoftwareSerial.h"
#include "timers.h"

Expand Down Expand Up @@ -389,3 +391,5 @@ int SoftwareSerial::peek() {
// Read from "head"
return _receive_buffer[_receive_buffer_head];
}

#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

1 comment on commit bd321d4

@estrelaj
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this :)

Please sign in to comment.