From 37a452f7c96871e1ca166dc29f7692e1334f4b06 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 4 Dec 2019 15:02:28 +0900 Subject: [PATCH] core: Fix bootloader for 128KB flash Got warning on bootloader address calculation when MCU has 128KB flash --- tmk_core/common/avr/bootloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmk_core/common/avr/bootloader.c b/tmk_core/common/avr/bootloader.c index 8a1bec06..8abce9d8 100644 --- a/tmk_core/common/avr/bootloader.c +++ b/tmk_core/common/avr/bootloader.c @@ -138,6 +138,6 @@ void bootloader_jump_after_watchdog_reset(void) #endif // This is compled into 'icall', address should be in word unit, not byte. - ((void (*)(void))(BOOTLOADER_START / 2))(); + ((void (*)(void))( (uint16_t)(BOOTLOADER_START / 2) ))(); } } -- 2.46.2