fix pointer casting warning

fixes following warning:
libboard/common/source/board_cstartup_gnu.c:137:11: warning: assignment to 'void (*)(void)' from 'unsigned int' makes pointer from integer without a cast [-Wint-conversion]
  appReset = pSrc[1];
This commit is contained in:
Kévin Redon
2018-05-21 19:33:50 +02:00
parent 0471d2a390
commit fe72bf11fd

View File

@@ -134,7 +134,7 @@ static void BootIntoApp(void)
pSrc = (unsigned int *) ((unsigned char *)IFLASH_ADDR + BOARD_DFU_BOOT_SIZE);
SCB->VTOR = ((unsigned int)(pSrc)) | (0x0 << 7);
appReset = pSrc[1];
appReset = (void(*)(void))pSrc[1];
g_dfu->state = DFU_STATE_appIDLE;