Bladeren bron

use actual device address for write commands

0xFE doesn't work
subDesTagesMitExtraKaese 1 maand geleden
bovenliggende
commit
60dc4bf081
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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