say ok on login, not x
This commit is contained in:
+4
-2
@@ -80,8 +80,8 @@ class I2CPCClient:
|
||||
def write_eeprom(self, addr: int, data: bytes):
|
||||
payload = bytes([7]) + struct.pack(">H", addr) + data
|
||||
return self._send_packet(payload, False)
|
||||
def read_eeprom(self, addr: int, len: int):
|
||||
payload = bytes([8]) + struct.pack(">H", addr) + bytes([len])
|
||||
def read_eeprom(self, addr: int, datalen: int):
|
||||
payload = bytes([8]) + struct.pack(">H", addr) + bytes([datalen])
|
||||
return self._send_packet(payload, False)
|
||||
|
||||
def version(self): return self._send_packet(bytes([4]))
|
||||
@@ -95,6 +95,8 @@ class I2CPCClient:
|
||||
def set_baudrate(self, baud: int):
|
||||
payload = bytes([6]) + struct.pack(">I", baud)
|
||||
out = self._send_packet(payload)
|
||||
|
||||
# Response is sent in old baudrate
|
||||
self.ser.baudrate = baud
|
||||
return out
|
||||
|
||||
|
||||
Reference in New Issue
Block a user