mirror of https://github.com/ArduPilot/ardupilot
AP_Bootloader: correct definition of function to match declaration
only returns a `uint8_t`
This commit is contained in:
parent
1e26441ae6
commit
c7c95e086c
|
@ -30,7 +30,7 @@ static const uint8_t *flash_base = (const uint8_t *)(0x08000000 + (FLASH_BOOTLOA
|
|||
* @param[in] a Hexadecimal character
|
||||
* @return Returns a binary value
|
||||
*/
|
||||
int16_t char_to_hex(char a)
|
||||
uint8_t char_to_hex(char a)
|
||||
{
|
||||
if (a >= 'A' && a <= 'F')
|
||||
return a - 'A' + 10;
|
||||
|
|
Loading…
Reference in New Issue