While not solving your problem, can't you use the /dev/serial0 alias to remove the need to detect which platform you are on?
Statistics: Posted by PhilE — Mon Dec 09, 2024 1:14 pm