Skip to content

Commit

Permalink
start with COM1 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Dec 6, 2023
1 parent 43ee9ef commit cb9438d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ZeDMDComm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ bool ZeDMDComm::Connect()
#ifndef __ANDROID__
char szDevice[32];

for (int i = 0; i < 5; i++)
for (int i = 0; i < 7; i++)
{
#ifdef __APPLE__
sprintf(szDevice, "/dev/cu.usbserial-%04d", i);
#elif defined(_WIN32) || defined(_WIN64)
sprintf(szDevice, "\\\\.\\COM%d", i);
sprintf(szDevice, "\\\\.\\COM%d", i + 1);
#else
sprintf(szDevice, "/dev/ttyUSB%d", i);
#endif
Expand Down

0 comments on commit cb9438d

Please sign in to comment.