btstack_util: use uint8_t as input for char_for_nibble

This commit is contained in:
Matthias Ringwald 2023-11-14 11:53:14 +01:00
parent d30de50130
commit d7d45b3213
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ int16_t btstack_time16_delta(uint16_t time_a, uint16_t time_b){
return (int16_t)(time_a - time_b); return (int16_t)(time_a - time_b);
} }
char char_for_nibble(int nibble){ char char_for_nibble(uint8_t nibble){
static const char * char_to_nibble = "0123456789ABCDEF"; static const char * char_to_nibble = "0123456789ABCDEF";

View File

@ -206,7 +206,7 @@ bool btstack_is_null_bd_addr( const bd_addr_t addr );
* @brief ASCII character for 4-bit nibble * @brief ASCII character for 4-bit nibble
* @return character * @return character
*/ */
char char_for_nibble(int nibble); char char_for_nibble(uint8_t nibble);
/** /**
* @brif 4-bit nibble from ASCII character * @brif 4-bit nibble from ASCII character