From b41f55ab06d4f7f34d98595ea2218fcb00510b18 Mon Sep 17 00:00:00 2001 From: mb0 Date: Fri, 15 Dec 2017 17:17:03 +0100 Subject: [PATCH] make planner test compile again --- src/avr/src/status.c | 2 +- src/avr/src/vars.c | 2 +- src/avr/test/Makefile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/avr/src/status.c b/src/avr/src/status.c index 8d1a0a8..c6113ad 100644 --- a/src/avr/src/status.c +++ b/src/avr/src/status.c @@ -82,7 +82,7 @@ stat_t status_message_P(const char *location, status_level_t level, vfprintf_P(stdout, msg, args); va_end(args); - } else printf_P(status_to_pgmstr(code)); + } else printf_P("%"PRPSTR, status_to_pgmstr(code)); putchar('"'); diff --git a/src/avr/src/vars.c b/src/avr/src/vars.c index 815bcc1..d9dcb12 100644 --- a/src/avr/src/vars.c +++ b/src/avr/src/vars.c @@ -113,7 +113,7 @@ static void var_print_float(float x) { break; } - printf(buf); + printf("%s", buf); } } diff --git a/src/avr/test/Makefile b/src/avr/test/Makefile index cb7d858..f3a56a1 100644 --- a/src/avr/test/Makefile +++ b/src/avr/test/Makefile @@ -1,7 +1,7 @@ TESTS=planner-test -PLANNER_TEST_SRC = gcode_parser.c machine.c status.c util.c axis.c report.c \ - homing.c probing.c command.c vars.c +PLANNER_TEST_SRC = gcode_parser.c gcode_expr.c machine.c status.c util.c axis.c report.c \ + command.c vars.c PLANNER_TEST_SRC := $(patsubst %,../src/%,$(PLANNER_TEST_SRC)) PLANNER_TEST_SRC += $(wildcard ../src/plan/*.c) planner-test.c hal.c -- 2.27.0