core: Fix bootloader for 128KB flash

Got warning on bootloader address calculation when MCU has 128KB flash
This commit is contained in:
tmk 2019-12-04 15:02:28 +09:00
parent ee4686eafc
commit 37a452f7c9

View file

@ -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) ))();
}
}