Skip to content

Commit

Permalink
always use broadcast flag - also if only one destination - fixes
Browse files Browse the repository at this point in the history
LongPressed/LongReleased issue for Remotes in FHEM
  • Loading branch information
pa-pa committed Apr 3, 2018
1 parent d2d688f commit 27d9dcd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Device.h
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ class Device {
}
HMID todev;
bool burst=false;
uint8_t tonum=0;
// go over all peers, get first external device
// check if one of the peers needs a burst to wakeup
for( uint8_t i=0; i<ch.peers(); ++i ) {
Expand All @@ -433,7 +432,6 @@ class Device {
}
typename ChannelType::List4 l4 = ch.getList4(p);
burst |= l4.burst();
tonum++;
}
}
}
Expand All @@ -443,12 +441,7 @@ class Device {
}
// DPRINT("BCAST to: ");todev.dump(); DPRINTLN("\n");
msg.burstRequired(burst);
if( tonum > 1 ) {
msg.setBroadcast();
}
else {
msg.setAck();
}
msg.setBroadcast();
send(msg,todev);
// signal that we have send to peer
hal->sendPeer();
Expand Down

0 comments on commit 27d9dcd

Please sign in to comment.