[dss-commits] r8877 - dss/trunk/unix
dss-commits at forum.digitalstrom.org
dss-commits at forum.digitalstrom.org
Fri Oct 30 09:50:35 CET 2009
Author: mtross
Date: 2009-10-30 09:50:35 +0100 (Fri, 30 Oct 2009)
New Revision: 8877
Modified:
dss/trunk/unix/ds485proxy.cpp
Log:
Use given zone id and avoid broadcast commands
Closes #202
Modified: dss/trunk/unix/ds485proxy.cpp
===================================================================
--- dss/trunk/unix/ds485proxy.cpp 2009-10-30 08:48:16 UTC (rev 8876)
+++ dss/trunk/unix/ds485proxy.cpp 2009-10-30 08:50:35 UTC (rev 8877)
@@ -309,13 +309,7 @@
frame.getHeader().setBroadcast(true);
frame.getHeader().setType(1);
frame.setCommand(CommandRequest);
- int toZone;
- if(getDSS().getApartment().getZones().size() == 2 /* zone 0 + another zone */) {
- toZone = 0;
- log("sendCommand(Zone,GroupID): Only one zone present, sending frame to broadcast zone");
- } else {
- toZone = _zone.getID();
- }
+ int toZone = _zone.getID();
if(_cmd == cmdTurnOn) {
frame.getPayload().add<uint8_t>(FunctionGroupCallScene);
frame.getPayload().add<uint16_t>(toZone);
More information about the dss-commits
mailing list