mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-17 19:57:57 -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
|
@ -258,7 +258,7 @@ command_get_uptime(uint32_t *args)
|
|||
DECL_COMMAND_FLAGS(command_get_uptime, HF_IN_SHUTDOWN, "get_uptime");
|
||||
|
||||
#define SUMSQ_BASE 256
|
||||
DECL_CONSTANT(STATS_SUMSQ_BASE, SUMSQ_BASE);
|
||||
DECL_CONSTANT("STATS_SUMSQ_BASE", SUMSQ_BASE);
|
||||
|
||||
void
|
||||
stats_update(uint32_t start, uint32_t cur)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue