From e9b648670656dd18f9ec712f7fdd7a8e4b8d5880 Mon Sep 17 00:00:00 2001 From: Alexander Wigen Date: Sat, 1 Jun 2024 11:02:09 +0200 Subject: [PATCH] Fix build failure 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); ^~~~~ --- src/lib/logging/logging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/logging/logging.h b/src/lib/logging/logging.h index 9b188e6649..98da67a9b8 100644 --- a/src/lib/logging/logging.h +++ b/src/lib/logging/logging.h @@ -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 { \ debugPrintf(msg, ##__VA_ARGS__); \ LOGGING_UART.println(); \ } while(0)