Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
In file included from lib/LUA/rx_devLUA.cpp:860:
lib/LUA/rx_devLUA.cpp: In function 'void
luaparamMappingChannelLimitMin(luaPropertiesCommon*, uint8_t)':
lib/logging/logging.h:66:29: error: expected ';' before 'do'
     #define DBGLN(msg, ...) do { \
                             ^~
lib/LUA/rx_devLUA.cpp:871:3: note: in expansion of macro 'DBGLN'
DBGLN("*** lua min value: %d",
luaMappingChannelLimitMin.properties.u.value);
   ^~~~~
  • Loading branch information
awigen committed Jun 1, 2024
1 parent 3514867 commit e9b6486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/logging/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void debugFreeInitLogger();
#define DBGW(c) LOGGING_UART.write(c)
#ifndef LOG_USE_PROGMEM
#define DBG(msg, ...) debugPrintf(msg, ##__VA_ARGS__)
#define DBGLN(msg, ...) do { \
#define DBGLN(msg, ...); do { \

This comment has been minimized.

Copy link
@pkendall64

pkendall64 Jul 7, 2024

This is NOT the correct fix for the error.
The correct fix is to add the missing semicolon here

DBGLN(dbgline)

debugPrintf(msg, ##__VA_ARGS__); \
LOGGING_UART.println(); \
} while(0)
Expand Down

0 comments on commit e9b6486

Please sign in to comment.