From b28e95ca1aa2860c0869041c29a3ba27054e5967 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 4 Mar 2019 23:35:11 -0500 Subject: command: Always pass a string to the DECL_CONSTANT() macro Make it clear that the name of the constant being defined is a string. When the value being defined is also a string, use a new DECL_CONSTANT_STR() macro. Signed-off-by: Kevin O'Connor --- src/stm32f1/adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stm32f1/adc.c') diff --git a/src/stm32f1/adc.c b/src/stm32f1/adc.c index 8eda4f8f..fcdcb911 100644 --- a/src/stm32f1/adc.c +++ b/src/stm32f1/adc.c @@ -14,7 +14,7 @@ #include "stm32f1xx_ll_gpio.h" // LL_GPIO_SetPinMode #include "sched.h" // sched_shutdown -DECL_CONSTANT(ADC_MAX, 4095); +DECL_CONSTANT("ADC_MAX", 4095); #define ADC_DELAY (240 * 8) -- cgit v1.2.3-70-g09d2