[dss-commits] r8743 - dss/trunk/core

dss-commits at forum.digitalstrom.org dss-commits at forum.digitalstrom.org
Tue Sep 8 16:16:32 CEST 2009


Author: pstaehlin
Date: 2009-09-08 16:16:32 +0200 (Tue, 08 Sep 2009)
New Revision: 8743

Modified:
   dss/trunk/core/model.cpp
Log:
Fixed compilation on gcc 4.1.2


Modified: dss/trunk/core/model.cpp
===================================================================
--- dss/trunk/core/model.cpp	2009-09-07 13:51:18 UTC (rev 8742)
+++ dss/trunk/core/model.cpp	2009-09-08 14:16:32 UTC (rev 8743)
@@ -152,7 +152,7 @@
 
   void Device::setValue(const double _value, const int _parameterNr) {
     if(_parameterNr == -1) {
-      DSS::getInstance()->getDS485Interface().sendCommand(cmdSetValue, *this, _value);
+      DSS::getInstance()->getDS485Interface().sendCommand(cmdSetValue, *this, static_cast<int>(_value));
     } else {
       DSS::getInstance()->getDS485Interface().setValueDevice(*this, (int)_value, _parameterNr, 1);
     }
@@ -1670,7 +1670,7 @@
 
   void Zone::setValue(const double _value, const int _parameterNr) {
     if(_parameterNr == -1) {
-      DSS::getInstance()->getDS485Interface().sendCommand(cmdSetValue, *this, GroupIDBroadcast, _value);
+      DSS::getInstance()->getDS485Interface().sendCommand(cmdSetValue, *this, GroupIDBroadcast, static_cast<int>(_value));
     } else {
       throw std::runtime_error("Can't set arbitrary parameter on a zone");
     }



More information about the dss-commits mailing list