mirror of
https://github.com/pommi/python-itho-wpu.git
synced 2025-06-26 23:05:44 +02:00
feat: log the hex request in debug mode
This commit is contained in:
@ -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}")
|
||||||
|
Reference in New Issue
Block a user