Преглед на файлове

use actual device address for write commands

0xFE doesn't work
subDesTagesMitExtraKaese преди 1 месец
родител
ревизия
60dc4bf081
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/bleclient.py

+ 1 - 1
src/bleclient.py

@@ -66,7 +66,7 @@ class BleClient(LumiaxClient):
     
     async def write(self, results: list[Result], repeat = 10, timeout = 5) -> ResultContainer:
         async with self.lock:
-            start_address, command = self.get_write_command(0xFE, results)
+            start_address, command = self.get_write_command(self.device_id, results)
             self.start_address = start_address
             self.response_queue = asyncio.Queue() # Clear the queue
             i = 0