Skip to content

Commit 4f84dcc

Browse files
author
xavier.beaudouin
committed
Add /dev/cuaU* USB serial devices to the allowed serial ports under FreeBSD.
Some ZWave devices are detect as modem. The /dev/ttyU* then doesn't work and hang domoticz.
1 parent 48290ea commit 4f84dcc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main/Helper.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ std::vector<std::string> GetSerialPorts(bool &bUseDirectPath)
200200
bUseDirectPath=true;
201201
ret.push_back("/dev/" + fname);
202202
}
203+
else if (fname.find("cuaU")!=std::string::npos)
204+
{
205+
bUseDirectPath=true;
206+
ret.push_back("/dev/" + fname);
207+
}
203208
#endif
204209
#ifdef __APPLE__
205210
else if (fname.find("cu.")!=std::string::npos)

0 commit comments

Comments
 (0)