ports/devel/bossa/files/patch-src_WinSerialPort.cpp
Boris Samorodov fcbe224d2c devel/bossa: Adding the 1200bps hack to devel/bossa should improve
reliability of programming the Arduino Due.

PR:		218241
Submitted by:	Kyle Evans <bsdports@kyle-evans.net> (maintainer)
2017-04-19 20:19:32 +00:00

18 lines
270 B
C++

--- src/WinSerialPort.cpp.orig 2017-03-31 15:31:35 UTC
+++ src/WinSerialPort.cpp
@@ -251,3 +251,15 @@ WinSerialPort::flush()
{
Sleep(1);
}
+
+void
+WinSerialPort::setDTR(bool dtr)
+{
+ Sleep(1);
+}
+
+void
+WinSerialPort::setRTS(bool rts)
+{
+ Sleep(1);
+}