1
0
mirror of https://github.com/pommi/python-itho-wpu.git synced 2024-11-22 14:02:15 +01:00

feat: log the hex request in debug mode

This commit is contained in:
Pim van den Berg 2023-06-05 21:33:45 +02:00
parent 8bde04ba41
commit a1f8328b50

View File

@ -62,6 +62,8 @@ class I2CMaster:
def execute_action(self, action): def execute_action(self, action):
request = self.compose_request(action) request = self.compose_request(action)
request_in_hex = [hex(c) for c in request]
logger.debug(f"Request: {request_in_hex}")
result = None result = None
for i in range(0, 20): for i in range(0, 20):
logger.debug(f"Executing action: {action}") logger.debug(f"Executing action: {action}")