1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 03:34:53 +08:00

Add support to enumerate serial ports on certain arm SOCs

Some ARM devices enumerate uart ports as /dev/ttyTHS0, 1, 2, 3 and 4.
Added search blob to scan these devices.
This commit is contained in:
Robin Krens 2022-12-16 15:30:18 +01:00
parent 69e0372cf0
commit b9204f5a7e

View File

@ -306,6 +306,7 @@ serial::list_ports()
search_globs.push_back("/dev/tty.*");
search_globs.push_back("/dev/cu.*");
search_globs.push_back("/dev/rfcomm*");
search_globs.push_back("/dev/ttyTHS*");
vector<string> devices_found = glob( search_globs );