1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

CF/BF - reduce flash usage by allowing blackbox that match other strings

to
be-duplicated by the linker.
This commit is contained in:
Hydra 2017-03-18 21:33:33 +00:00 committed by Dominic Clifton
parent 31dc531ca0
commit b473ebf0d0
3 changed files with 81 additions and 79 deletions

View file

@ -125,12 +125,14 @@ int blackboxPrintf(const char *fmt, ...)
* printf a Blackbox header line with a leading "H " and trailing "\n" added automatically. blackboxHeaderBudget is
* decreased to account for the number of bytes written.
*/
void blackboxPrintfHeaderLine(const char *fmt, ...)
void blackboxPrintfHeaderLine(const char *name, const char *fmt, ...)
{
va_list va;
blackboxWrite('H');
blackboxWrite(' ');
blackboxPrint(name);
blackboxWrite(':');
va_start(va, fmt);