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:
geby 2023-11-07 10:56:14 +00:00
parent c529150b61
commit 0eda92b747

View File

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