1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 <2015> 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 <2015> 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Serial port COM10: not work? |
From: | Torsten Bögershausen <[email protected]> |
To: | Eric Norum <[email protected]>, Mark Rivers <[email protected]> |
Cc: | "EPICS Tech-Talk \([email protected]\)" <[email protected]> |
Date: | Thu, 1 Oct 2015 06:46:17 +0200 |
I propose the following: -If the device name passed to drvAsynSerialPortConfigure starts with ‘\’ then assume the user has used a device name, and use it directly.
-If the device name does not begin with ‘\’ then prepend “\\.\”.That sounds ideal.
Minor nit and suggestion for improvement to avoid futere suprises: If the device name does not start with '\\.\', prepend '\\.\' Written in C-language: "\\\\.\\"