feat: log the hex request in debug mode
This commit is contained in:
		
							parent
							
								
									8bde04ba41
								
							
						
					
					
						commit
						a1f8328b50
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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}")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue