mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Splits out SerialHelper to allow using OS or VISA resources (#365)
Also removes regex and uses simple splits instead
This commit is contained in:
committed by
Peter Johnson
parent
4bbb7c0bcc
commit
57ef5cfd07
@@ -25,7 +25,7 @@ void HAL_InitializeSerialPort(HAL_SerialPort port, int32_t* status) {
|
||||
|
||||
hal::SerialHelper serialHelper(resourceManagerHandle);
|
||||
|
||||
portName = serialHelper.GetSerialPortName(port, status);
|
||||
portName = serialHelper.GetVISASerialPortName(port, status);
|
||||
|
||||
if (*status < 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user