From 8bb344b29d6a403b013865ce9f0d38c924cc07fe Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 18 Dec 2020 22:40:38 -0800 Subject: [PATCH] Fix an escaping bug that was causing "printf" messages when trying to build --- etc/makefiles/sketch.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/etc/makefiles/sketch.mk b/etc/makefiles/sketch.mk index 20f78cb9..2de435f0 100644 --- a/etc/makefiles/sketch.mk +++ b/etc/makefiles/sketch.mk @@ -109,11 +109,13 @@ ifneq ($(FQBN),) KALEIDOSCOPE_DEVICE_PORT ?= $(shell $(ARDUINO_CLI) board list --format=text | grep $(FQBN) |cut -d' ' -f 1) endif -flashing_instructions := $(shell printf $(call _arduino_prop,build.flashing_instructions)) +flashing_instructions := $(call _arduino_prop,build.flashing_instructions) ifeq ($(flashing_instructions),) -flashing_instruction := "If your keyboard needs you to do something to put it in flashing mode, do that now." +flashing_instructions := "If your keyboard needs you to do something to put it in flashing mode, do that now." endif +unescaped_flashing_instructions := $(shell printf $(flashing_instructions) ) + DEFAULT_GOAL: compile @@ -199,9 +201,10 @@ ifeq ($(KALEIDOSCOPE_DEVICE_PORT),) $(info Arduino should autodetect it, but you could also set ) $(info KALEIDOSCOPE_DEVICE_PORT to your keyboard's serial port.) $(info ) - $(error ) + $(error ) + endif - $(info $(flashing_instructions)) + $(info $(unescaped_flashing_instructions)) $(info ) $(info When you're ready to proceed, press 'Enter'.) $(info )