Use correct format specifier in printf for uint32_t

This commit is contained in:
Mario Hüttel 2020-05-05 00:01:09 +02:00
parent 90da880386
commit 04389b1df6

View File

@ -26,6 +26,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
/* #include <arm_math.h> */
#include <stm32/stm32f4xx.h>
#include <cmsis/core_cm4.h>
@ -216,7 +217,7 @@ int main()
rot = rotary_encoder_get_abs_val();
snprintf(&disp[0][0], 21U, "Rot-Enc: %u", rot);
snprintf(&disp[0][0], 21U, "Rot-Enc: %" PRIu32, rot);
strcpy(&disp[1][0], "Line 2");
strcpy(&disp[3][0], "Shimatta Reflow");