git-svn-id: svn://db.shs.com.ru/pip@965 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2020-03-22 17:43:21 +00:00
parent 7de11ea7bb
commit 05a29c03df
2 changed files with 7 additions and 28 deletions

View File

@@ -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