From 0071f1fcf16b7bca6593695e76ea6e9230626f2a Mon Sep 17 00:00:00 2001 From: topin89 Date: Mon, 19 Mar 2018 20:03:08 +0300 Subject: [PATCH] Adding support for COM100-COM999 --- rs232-win.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rs232-win.c b/rs232-win.c index 67839d6..bb6457d 100644 --- a/rs232-win.c +++ b/rs232-win.c @@ -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: fredericmeslin@hotmail.com Website: www.fredslab.net Twitter: @marzacdev @@ -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); @@ -301,7 +301,7 @@ 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 @@ -309,7 +309,7 @@ const char * findPattern(const char * string, const char * pattern, int * value) if (*pp ++ == '\0') break; }else{ n = 0; - pp = comPtn; + pp = pattern; } } }