Hi,

I noticed that the routine which converts from
analog pin state as a character to enumeration
was missing a couple of cases 'A' and 'a'.  What
should "analogValue" be in these cases?

$ cvs diff -u pin.cpp
Index: pin.cpp
===================================================================
RCS file: /sources/simulavr/simulavrxx/src/pin.cpp,v
retrieving revision 1.14
diff -u -r1.14 pin.cpp
--- pin.cpp    10 Apr 2009 16:58:49 -0000    1.14
+++ pin.cpp    11 May 2009 17:55:02 -0000
@@ -203,7 +203,8 @@
case 't': outState=TRISTATE; analogValue=TRISTATE_ANALOG_VALUE; break;
        case 'l': outState=PULLDOWN; analogValue=0; break;
        case 'L': outState=LOW; analogValue=0; break;
-
+        case 'a': outState=ANALOG; analogValue=0; break;
+        case 'A': outState=ANALOG_SHORTED; analogValue=0; break;
    }

--
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherr...@oarcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985




_______________________________________________
Simulavr-devel mailing list
Simulavr-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/simulavr-devel

Reply via email to