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/avr/hard_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/avr/hard_pwm.c') diff --git a/src/avr/hard_pwm.c b/src/avr/hard_pwm.c index a6609313..01d0bd9e 100644 --- a/src/avr/hard_pwm.c +++ b/src/avr/hard_pwm.c @@ -74,7 +74,7 @@ static const struct gpio_pwm_info pwm_regs[] PROGMEM = { #endif }; -DECL_CONSTANT(PWM_MAX, 255); +DECL_CONSTANT("PWM_MAX", 255); struct gpio_pwm gpio_pwm_setup(uint8_t pin, uint32_t cycle_time, uint8_t val) -- cgit v1.2.3-70-g09d2