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

dss-commits at forum.digitalstrom.org dss-commits at forum.digitalstrom.org
Wed Sep 23 17:34:07 CEST 2009


Author: jwinkelmann
Date: 2009-09-23 17:34:07 +0200 (Wed, 23 Sep 2009)
New Revision: 8793

Modified:
   dss/trunk/core/model.cpp
Log:
onDSLinkInterrupt: check for correct pointer (plus some whitespace fixes)

Modified: dss/trunk/core/model.cpp
===================================================================
--- dss/trunk/core/model.cpp	2009-09-23 13:09:41 UTC (rev 8792)
+++ dss/trunk/core/model.cpp	2009-09-23 15:34:07 UTC (rev 8793)
@@ -157,7 +157,7 @@
       DSS::getInstance()->getDS485Interface().setValueDevice(*this, (int)_value, _parameterNr, 1);
     }
   } // setValue
-  
+
   void Device::setRawValue(const uint16_t _value, const int _parameterNr, const int _size) {
     DSS::getInstance()->getDS485Interface().setValueDevice(*this, _value, _parameterNr, _size);
   } // setRawValue
@@ -859,17 +859,17 @@
       modulator.setBusID(modulatorID);
       scanModulator(modulator);
     }
-    
+
     // mark devices of absent modulators as not present
     foreach(Modulator* pModulator, m_Modulators) {
       if(!pModulator->isPresent()) {
         Set devices = pModulator->getDevices();
         SetNotPresentAction action;
-        devices.perform(action);        
+        devices.perform(action);
       }
     }
   } // initializeFromBus
-  
+
   void Apartment::newModulator(int _modulatorBusID) {
     DS485Interface& interface = DSS::getInstance()->getDS485Interface();
 
@@ -885,11 +885,11 @@
       modulator.setBusID(modulatorID);
     }
   } // newModulator
-  
+
   void Apartment::lostModulator(int _modulatorBusID) {
     initializeFromBus();
   } // lostModulator
-  
+
   void Apartment::modulatorReady(int _modulatorBusID) {
     log("Modulator with id: " + intToString(_modulatorBusID) + " is ready");
     initializeFromBus();
@@ -1507,7 +1507,7 @@
           return;
         }
         PropertyNodePtr modeNode = deviceNode->getProperty("interrupt/mode");
-        if(deviceNode == NULL) {
+        if(modeNode == NULL) {
           return;
         }
         string mode = modeNode->getStringValue();



More information about the dss-commits mailing list