From a1f8328b50ceee8ee0b4db13107be7455d877229 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 5 Jun 2023 21:33:45 +0200 Subject: [PATCH] feat: log the hex request in debug mode --- itho_i2c.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/itho_i2c.py b/itho_i2c.py index 12eaddb..00dfd6f 100644 --- a/itho_i2c.py +++ b/itho_i2c.py @@ -62,6 +62,8 @@ class I2CMaster: def execute_action(self, action): request = self.compose_request(action) + request_in_hex = [hex(c) for c in request] + logger.debug(f"Request: {request_in_hex}") result = None for i in range(0, 20): logger.debug(f"Executing action: {action}")