Fixed wrong variable type in printf

This commit is contained in:
Logan G 2023-08-09 23:37:02 -06:00
parent a891650679
commit 6ca77928e2
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -36,7 +36,7 @@ int main(void)
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
Delay_Init();
USART_Printf_Init(115200);
printf("SystemClk:%d\r\n", SystemCoreClock);
printf("SystemClk:%ld\r\n", SystemCoreClock);
printf("This is printf example\r\n");