about summary refs log tree commit diff
path: root/broadlink
diff options
context:
space:
mode:
Diffstat (limited to 'broadlink')
-rwxr-xr-xbroadlink/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/broadlink/__init__.py b/broadlink/__init__.py
index 8e38c06df63f..cd9d1599f144 100755
--- a/broadlink/__init__.py
+++ b/broadlink/__init__.py
@@ -129,6 +129,7 @@ class device:
     self.key = payload[0x04:0x14]
 
   def send_packet(self, command, payload):
+    self.count = (self.count + 1) & 0xffff
     packet = bytearray(0x38)
     packet[0x00] = 0x5a
     packet[0x01] = 0xa5