Skip to content

Commit

Permalink
Update Goldelox_Serial_4DLib.cpp
Browse files Browse the repository at this point in the history
Fix for more modern definition of SAM boards, to remove the serial port flush() which causes problems
  • Loading branch information
4D Systems authored Nov 6, 2020
1 parent 9193470 commit 6a41c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Goldelox_Serial_4DLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

Goldelox_Serial_4DLib::Goldelox_Serial_4DLib(Stream * virtualPort) {
_virtualPort = virtualPort;
#ifndef _SAM3XA_
// Only done on non Arduino Due Boards
#if !defined(ARDUINO_ARCH_SAMD) || (ARDUINO_ARCH_SAM)
//Only done for non-SAMD/SAM architectures
_virtualPort->flush();
#endif
}
Expand Down

0 comments on commit 6a41c08

Please sign in to comment.