Skip to content

Commit adc39b3

Browse files
authored
Fix: va_start(va_list ap, paramN) needs to be parametrized with the latest named parameter in the parameter list. (#13)
1 parent b03ae2e commit adc39b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Arduino_DebugUtils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void Arduino_DebugUtils::print(int const debug_level, const __FlashStringHelper
8383
String fmt_str(fmt);
8484

8585
va_list args;
86-
va_start(args, fmt_str.c_str());
86+
va_start(args, fmt);
8787
vPrint(fmt_str.c_str(), args);
8888
va_end(args);
8989
}

0 commit comments

Comments
 (0)