Skip to content

Commit

Permalink
Improvement: Support for more than 9 COM ports
Browse files Browse the repository at this point in the history
  • Loading branch information
r57zone committed Feb 12, 2022
1 parent 0361ea5 commit 4cdde28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenVR/samples/driver_arduinohmd/driver_arduinohmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ void ArduinoIMURead()
}

void ArduinoIMUStart() {
TCHAR PortName[15] = { 0 };
_stprintf(PortName, TEXT("COM%d"), comPortNumber);
TCHAR PortName[32] = { 0 };
_stprintf(PortName, TEXT("\\\\.\\COM%d"), comPortNumber);
//CString sPortName;
//sPortName.Format(_T("COM%d"), IniFile.ReadInteger("Main", "ComPort", 2));

Expand Down

0 comments on commit 4cdde28

Please sign in to comment.