Skip to content

Commit

Permalink
AP_Bootloader: correct definition of function to match declaration
Browse files Browse the repository at this point in the history
only returns a `uint8_t`
  • Loading branch information
peterbarker committed Sep 24, 2024
1 parent 1e26441 commit c7c95e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/AP_Bootloader/flash_from_sd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c7c95e0

Please sign in to comment.