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:
parent
31dc531ca0
commit
b473ebf0d0
3 changed files with 81 additions and 79 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue