Skip to content

Commit 92e4d25

Browse files
authored
Merge pull request #42 from mak-gitdev/master
Fix issue #41
2 parents 8c0cd1e + 3675b4d commit 92e4d25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enoceanmqtt/communicator.py

+3
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,10 @@ def _send_packet(self, sensor, destination, command=None,
458458
if 'data' in sensor:
459459
# override with specific data settings
460460
logging.debug("sensor data: %s", sensor['data'])
461+
# Set packet data payload
461462
packet.set_eep(sensor['data'])
463+
# Set packet status bits
464+
packet.data[-1] = packet.status
462465
packet.parse_eep() # ensure that the logging output of packet is updated
463466
else:
464467
# what to do if we have no data to send yet?

0 commit comments

Comments
 (0)