1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 03:20:00 +03:00

duplicate emptyline removal (#14027)

* trailing space removal

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* deduplicate empty lines

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
This commit is contained in:
nerdCopter 2024-11-15 16:07:25 -06:00 committed by GitHub
parent 493b9bf819
commit ed6a4a4769
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
289 changed files with 0 additions and 629 deletions

View file

@ -447,7 +447,6 @@ void cliPrintf(const char *format, ...)
va_end(va);
}
void cliPrintLinef(const char *format, ...)
{
va_list va;
@ -645,7 +644,6 @@ static void printValuePointer(const char *cmdName, const clivalue_t *var, const
}
}
static bool valuePtrEqualsDefault(const clivalue_t *var, const void *ptr, const void *ptrDefault)
{
bool result = true;
@ -763,7 +761,6 @@ static uint8_t getRateProfileIndexToUse(void)
return rateProfileIndexToUse == CURRENT_PROFILE_INDEX ? getCurrentControlRateProfileIndex() : rateProfileIndexToUse;
}
static uint16_t getValueOffset(const clivalue_t *value)
{
switch (value->type & VALUE_SECTION_MASK) {
@ -1317,7 +1314,6 @@ static void cliSerial(const char *cmdName, char *cmdline)
serialPortConfig_t portConfig;
memset(&portConfig, 0 , sizeof(portConfig));
uint8_t validArgumentCount = 0;
const char *ptr = cmdline;
@ -1534,7 +1530,6 @@ static void cliSerialPassthrough(const char *cmdName, char *cmdline)
index++;
}
for (unsigned i = 0; i < ARRAYLEN(ports); i++) {
if (findSerialPortIndexByIdentifier(ports[i].id) < 0) {
cliPrintLinef("Invalid port%d %d", i + 1, ports[i].id);
@ -3530,7 +3525,6 @@ static void printMap(dumpFlags_t dumpMask, const rxConfig_t *rxConfig, const rxC
cliDumpPrintLinef(dumpMask, equalsDefault, formatMap, buf);
}
static void cliMap(const char *cmdName, char *cmdline)
{
uint32_t i;
@ -3696,7 +3690,6 @@ static void cliDumpGyroRegisters(const char *cmdName, char *cmdline)
}
#endif
static int parseOutputIndex(const char *cmdName, char *pch, bool allowAllEscs)
{
int outputIndex = atoi(pch);
@ -6189,7 +6182,6 @@ static void cliResource(const char *cmdName, char *cmdline)
#ifdef USE_DSHOT_TELEMETRY
static void cliDshotTelemetryInfo(const char *cmdName, char *cmdline)
{
UNUSED(cmdName);