git-svn-id: svn://db.shs.com.ru/pip@965 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -822,7 +822,7 @@ PIStringList PISerial::availableDevices(bool test) {
|
||||
# ifdef FREE_BSD
|
||||
prefixes << "cu";
|
||||
# endif
|
||||
# ifdef APPLE
|
||||
# ifdef MAC_OS
|
||||
prefixes.clear();
|
||||
prefixes << "cu." << "tty.";
|
||||
# endif
|
||||
@@ -851,8 +851,8 @@ PIStringList PISerial::availableDevices(bool test) {
|
||||
PIVector<PIFile::FileInfo> de = dir.entries();
|
||||
piForeachC (PIFile::FileInfo & e, de) { // TODO changes in FileInfo
|
||||
piForeachC (PIString & p, prefixes) {
|
||||
if (e.name().left(p.size_s()) != p) continue;
|
||||
dl << e.path;
|
||||
if (e.name().startsWith(p))
|
||||
dl << e.path;
|
||||
}
|
||||
}
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user