diff --git a/adafruit_ble_ibbq.py b/adafruit_ble_ibbq.py index 0cc6eb8..3c098b3 100644 --- a/adafruit_ble_ibbq.py +++ b/adafruit_ble_ibbq.py @@ -92,14 +92,14 @@ class IBBQService(Service): _UNITS_CELSIUS_MSG = b"\x02\x00\x00\x00\x00\x00" _REQUEST_BATTERY_LEVEL_MSG = b"\x08\x24\x00\x00\x00\x00" - @staticmethod - def target_temp_msg(low, high): - return struct.pack(" 0: + return tuple( + struct.unpack_from("= 5: - # There can be at least one extra byte at the end, so use unpack_from(). - header, current_voltage, max_voltage = struct.unpack_from("= 5: + header, current_voltage, max_voltage = struct.unpack_from("