diff --git a/examples/foc/foc_motor_b16.c b/examples/foc/foc_motor_b16.c index 5cb25f610..543f44933 100644 --- a/examples/foc/foc_motor_b16.c +++ b/examples/foc/foc_motor_b16.c @@ -121,11 +121,11 @@ static int foc_motor_align(FAR struct foc_motor_b16_s *motor, FAR bool *done) goto errout; } - PRINTF("Aling results:\n"); + PRINTFV("Aling results:\n"); #ifdef CONFIG_INDUSTRY_FOC_ALIGN_DIR - PRINTF(" dir = %.2f\n", b16tof(final.dir)); + PRINTFV(" dir = %.2f\n", b16tof(final.dir)); #endif - PRINTF(" offset = %.2f\n", b16tof(final.offset)); + PRINTFV(" offset = %.2f\n", b16tof(final.offset)); *done = true; } diff --git a/examples/foc/foc_motor_f32.c b/examples/foc/foc_motor_f32.c index 5ede5cb14..f39949536 100644 --- a/examples/foc/foc_motor_f32.c +++ b/examples/foc/foc_motor_f32.c @@ -121,11 +121,11 @@ static int foc_motor_align(FAR struct foc_motor_f32_s *motor, FAR bool *done) goto errout; } - PRINTF("Aling results:\n"); + PRINTFV("Aling results:\n"); #ifdef CONFIG_INDUSTRY_FOC_ALIGN_DIR - PRINTF(" dir = %.2f\n", final.dir); + PRINTFV(" dir = %.2f\n", final.dir); #endif - PRINTF(" offset = %.2f\n", final.offset); + PRINTFV(" offset = %.2f\n", final.offset); *done = true; }