From c7c95e086c0761ec23a3d10a0ba51456fa036f25 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 24 Sep 2024 12:27:18 +1000 Subject: [PATCH] AP_Bootloader: correct definition of function to match declaration only returns a `uint8_t` --- Tools/AP_Bootloader/flash_from_sd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/AP_Bootloader/flash_from_sd.cpp b/Tools/AP_Bootloader/flash_from_sd.cpp index 9c191a1ae8..de3d5b1beb 100644 --- a/Tools/AP_Bootloader/flash_from_sd.cpp +++ b/Tools/AP_Bootloader/flash_from_sd.cpp @@ -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;