AP_Bootloader: correct definition of function to match declaration

only returns a `uint8_t`
This commit is contained in:
Peter Barker 2024-09-24 12:27:18 +10:00 committed by Peter Barker
parent 1e26441ae6
commit c7c95e086c
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ static const uint8_t *flash_base = (const uint8_t *)(0x08000000 + (FLASH_BOOTLOA
* @param[in] a Hexadecimal character * @param[in] a Hexadecimal character
* @return Returns a binary value * @return Returns a binary value
*/ */
int16_t char_to_hex(char a) uint8_t char_to_hex(char a)
{ {
if (a >= 'A' && a <= 'F') if (a >= 'A' && a <= 'F')
return a - 'A' + 10; return a - 'A' + 10;