Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for COM100-COM999 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions rs232-win.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

The MIT License (MIT)

Copyright (c) 2013-2015 Fr�d�ric Meslin, Florent Touchard
Copyright (c) 2013-2015 Frédéric Meslin, Florent Touchard
Email: [email protected]
Website: www.fredslab.net
Twitter: @marzacdev
Expand Down Expand Up @@ -53,7 +53,7 @@ static COMDevice comDevices[COM_MAXDEVICES];
static int noDevices = 0;

#define COM_MINDEVNAME 16384
const char * comPtn = "COM???";
const char * comPtn = "COM????";

/*****************************************************************************/
const char * findPattern(const char * string, const char * pattern, int * value);
Expand Down Expand Up @@ -301,15 +301,15 @@ const char * findPattern(const char * string, const char * pattern, int * value)
if (*pp ++ == '\0') break;
}else{
n = 0;
pp = comPtn;
pp = pattern;
}
}else{
// Expect a character
if (c == *pp) {
if (*pp ++ == '\0') break;
}else{
n = 0;
pp = comPtn;
pp = pattern;
}
}
}
Expand Down