Skip to content

Commit db06ec5

Browse files
committed
Use desktop compat to choose serial port
1 parent 198f00c commit db06ec5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/IO/ArduinoProxy.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ void ArduinoProxy::initialize()
2424
{
2525
std::lock_guard<std::mutex> lockGuard(serialMutex);
2626

27+
#if DESKTOP_COMPAT == 1
2728
if ((fd = serialOpen("/dev/ttyACM0", 57600)) < 0)
29+
#else
30+
if ((fd = serialOpen("/dev/ttyAMA0", 57600)) < 0)
31+
#endif
2832
{
2933
SPDLOG_LOGGER_ERROR(logger, "Error while opening serial communication!");
3034
return;

0 commit comments

Comments
 (0)