mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-22 14:13:59 -06:00
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 <kevin@koconnor.net>
This commit is contained in:
parent
7eda55e2b0
commit
b28e95ca1a
29 changed files with 33 additions and 33 deletions
|
@ -37,7 +37,7 @@ static const uint8_t adc_pins[] = {
|
|||
};
|
||||
#endif
|
||||
|
||||
DECL_CONSTANT(ADC_MAX, 4095);
|
||||
DECL_CONSTANT("ADC_MAX", 4095);
|
||||
|
||||
static struct gpio_adc gpio_adc_pin_to_struct(uint8_t pin)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue