Diff of /src/lib/simulator/src/electronics/components/discretelogic.cpp [9e3b00] .. [812dd5]  Maximize  Restore

Switch to side-by-side view

--- a/src/lib/simulator/src/electronics/components/discretelogic.cpp
+++ b/src/lib/simulator/src/electronics/components/discretelogic.cpp
@@ -77,13 +77,13 @@
     Q_UNUSED(oldValue);
 
     if( theProperty.name() == "useToggle" ){
-        m_toggleOn = newValue.asBool();
+        m_toggleOn = newValue.toBool();
     }
     if( theProperty.name() == "buttonPressed" ){
         if(m_toggleOn)
             m_outState = !m_outState;
         else
-            m_outState = newValue.asBool();
+            m_outState = newValue.toBool();
 
         m_pOut.setHigh(m_outState);
     }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks