apple search PISerial test
git-svn-id: svn://db.shs.com.ru/pip@954 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -821,6 +821,10 @@ PIStringList PISerial::availableDevices(bool test) {
|
|||||||
<< "ttyMI" << "ttymxc" << "ttyAMA" << "rfcomm" << "ircomm";
|
<< "ttyMI" << "ttymxc" << "ttyAMA" << "rfcomm" << "ircomm";
|
||||||
# ifdef FREE_BSD
|
# ifdef FREE_BSD
|
||||||
prefixes << "cu";
|
prefixes << "cu";
|
||||||
|
# endif
|
||||||
|
# ifdef APPLE
|
||||||
|
prefixes.clear();
|
||||||
|
prefixes << "cu." << "tty.";
|
||||||
# endif
|
# endif
|
||||||
PIFile file_prefixes("/proc/tty/drivers", PIIODevice::ReadOnly);
|
PIFile file_prefixes("/proc/tty/drivers", PIIODevice::ReadOnly);
|
||||||
if (file_prefixes.open()) {
|
if (file_prefixes.open()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user