[dss-commits] r8880 - dss/trunk/core/sim

dss-commits at forum.digitalstrom.org dss-commits at forum.digitalstrom.org
Mon Nov 2 12:00:06 CET 2009


Author: rkoehler
Date: 2009-11-02 12:00:06 +0100 (Mon, 02 Nov 2009)
New Revision: 8880

Modified:
   dss/trunk/core/sim/dsidsim.cpp
Log:
Consumption from simulated device base class has been set to 0

Modified: dss/trunk/core/sim/dsidsim.cpp
===================================================================
--- dss/trunk/core/sim/dsidsim.cpp	2009-10-30 12:23:13 UTC (rev 8879)
+++ dss/trunk/core/sim/dsidsim.cpp	2009-11-02 11:00:06 UTC (rev 8880)
@@ -43,7 +43,7 @@
   } // ctor
 
   int DSIDSim::getConsumption() {
-    return (int)((m_CurrentValue / 255.0) * m_SimpleConsumption) + (rand() % 100);
+    return (int) 0; //((m_CurrentValue / 255.0) * m_SimpleConsumption) + (rand() % 100);
   }
 
   void DSIDSim::callScene(const int _sceneNr) {



More information about the dss-commits mailing list