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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: asyn4-20 compiling error on Scientific Linux 6.1 |
From: | Eric Norum <[email protected]> |
To: | "Jim Chen" <[email protected]> |
Cc: | "'epics'" <[email protected]> |
Date: | Thu, 6 Sep 2012 09:32:17 -0700 |
Yep, events are now strings. Here's the quick fix that I made to work around this problem. diff -ur /usr/local/epics/R3.14.12/modules/soft/synApps_5_6/support/asyn4-20/asyn/devGpib/devCommonGpib.c /usr/local/epics/R3.15.0/modules/src/asyn/trunk/asyn/devGpib/devCommonGpib.c --- /usr/local/epics/R3.14.12/modules/soft/synApps_5_6/support/asyn4-20/asyn/devGpib/devCommonGpib.c 2008-07-24 13:39:29.000000000 -0700 +++ /usr/local/epics/R3.15.0/modules/src/asyn/trunk/asyn/devGpib/devCommonGpib.2012-08-02 13:25:45.000000000 -0700 @@ -470,9 +470,7 @@ "%s no msg buffer\n",pev->name); failure = -1; } else {/* interpret msg with predefined format and write into val/rval */ - char *format = (pgpibCmd->format) ? (pgpibCmd->format) : "hu"; - if (sscanf(pgpibDpvt->msg, format, &value) == 1) { - pev->val = value; + if (sscanf(pgpibDpvt->msg, " %39s", pev->val) == 1) { pev->udf = FALSE; } else { /* sscanf did not find or assign the parameter */ failure = -1; On Sep 6, 2012, at 9:17 AM, "Jim Chen" <[email protected]> wrote:
|