mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Improve CLI diff output to only include non-empty sections
Eliminates the empty blocks for sections that have no changes from defaults.
This commit is contained in:
parent
1cbff2b9aa
commit
a1135dbbc4
3 changed files with 186 additions and 125 deletions
|
@ -28,6 +28,7 @@ extern "C" {
|
|||
#include "build/version.h"
|
||||
#include "cli/cli.h"
|
||||
#include "cli/settings.h"
|
||||
#include "common/printf.h"
|
||||
#include "config/feature.h"
|
||||
#include "drivers/buf_writer.h"
|
||||
#include "drivers/vtx_common.h"
|
||||
|
@ -227,19 +228,6 @@ uint8_t getMotorCount() {
|
|||
|
||||
void setPrintfSerialPort(struct serialPort_s) {}
|
||||
|
||||
void tfp_printf(const char * expectedFormat, ...) {
|
||||
va_list args;
|
||||
|
||||
va_start(args, expectedFormat);
|
||||
vprintf(expectedFormat, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
|
||||
void tfp_format(void *, void (*) (void *, char), const char * expectedFormat, va_list va) {
|
||||
vprintf(expectedFormat, va);
|
||||
}
|
||||
|
||||
static const box_t boxes[] = { { 0, "DUMMYBOX", 0 } };
|
||||
const box_t *findBoxByPermanentId(uint8_t) { return &boxes[0]; }
|
||||
const box_t *findBoxByBoxId(boxId_e) { return &boxes[0]; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue