EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  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  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: A patch for medm
From: Kate Feng <[email protected]>
To: [email protected]
Date: Thu, 06 Dec 2007 08:08:31 -0500
MEDM version 3.03 :

When I defined only three states for a  mbbo record,
the following warning message will pop up whenever  CA is
connected.

menuUpdateValueCb: Got state 3.
 Only have strings for 3 states (starting at 0).
 Kate:Mset_formatmode


A minor patch stops the warining message:


diff -c -u medmMenu.c.orig medmMenu.c

--- medmMenu.c.orig Tue Jun 10 12:13:27 2003
+++ medmMenu.c Thu Nov 29 07:24:48 2007
@@ -510,7 +510,7 @@
        XmNnumChildren,&numChildren,
        NULL);
      i = (int) pr->value;
-      if((i >=0) && (i < (int) numChildren)) {
+      if((i >=0) && (i <= (int) numChildren)) {
   XtVaSetValues(widget,XmNmenuHistory,children[i],NULL);
      } else {
   medmPostMsg(1,"menuUpdateValueCb: Got state %d.\n"


Happy Hoildays to all! Kate



Replies:
Re: A patch for medm Andrew Johnson

Navigate by Date:
Prev: Re: Stream protocol configuration Dirk Zimoch
Next: Re: Multiple IOC Robert Emery
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Cryocon and TSI hardware support? David Maden
Next: Re: A patch for medm Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·