From: tmk Date: Wed, 4 Dec 2019 06:02:28 +0000 (+0900) Subject: core: Fix bootloader for 128KB flash X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=37a452f7c96871e1ca166dc29f7692e1334f4b06;p=max%2Ftmk_keyboard.git core: Fix bootloader for 128KB flash Got warning on bootloader address calculation when MCU has 128KB flash --- 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) ))(); } }