GetSerialPortNames returns ttyACM* too
git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@275 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
parent
c529150b61
commit
0eda92b747
11
synaser.pas
11
synaser.pas
@ -1,5 +1,5 @@
|
||||
{==============================================================================|
|
||||
| Project : Ararat Synapse | 007.007.002 |
|
||||
| Project : Ararat Synapse | 007.007.003 |
|
||||
|==============================================================================|
|
||||
| Content: Serial port support |
|
||||
|==============================================================================|
|
||||
@ -2460,6 +2460,15 @@ begin
|
||||
until FindNext(sr) <> 0;
|
||||
end;
|
||||
FindClose(sr);
|
||||
if FindFirst('/dev/ttyACM*', ATTR, sr) = 0 then begin
|
||||
repeat
|
||||
if (sr.Attr and ATTR) = Sr.Attr then begin
|
||||
if Result <> '' then Result := Result + ',';
|
||||
Result := Result + '/dev/' + sr.Name;
|
||||
end;
|
||||
until FindNext(sr) <> 0;
|
||||
end;
|
||||
FindClose(sr);
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user