From 6ca77928e227e590c25295b05d8f4d907b5dfea6 Mon Sep 17 00:00:00 2001 From: Logan G Date: Wed, 9 Aug 2023 23:37:02 -0600 Subject: [PATCH] Fixed wrong variable type in printf --- User/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/User/main.c b/User/main.c index 53c22f4..a6c64b3 100644 --- a/User/main.c +++ b/User/main.c @@ -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");