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

Remove old style definitions

This commit is contained in:
KarateBrot 2022-10-12 14:40:51 +02:00
parent b54174c77e
commit ddf1d46549
57 changed files with 119 additions and 117 deletions

View file

@ -353,7 +353,7 @@ static void cliPrintInternal(bufWriter_t *writer, const char *str)
}
}
static void cliWriterFlush()
static void cliWriterFlush(void)
{
cliWriterFlushInternal(cliWriter);
}
@ -709,13 +709,13 @@ static void restoreConfigs(uint16_t notToRestoreGroupId)
}
#if defined(USE_RESOURCE_MGMT) || defined(USE_TIMER_MGMT)
static bool isReadingConfigFromCopy()
static bool isReadingConfigFromCopy(void)
{
return configIsInCopy;
}
#endif
static bool isWritingConfigToCopy()
static bool isWritingConfigToCopy(void)
{
return configIsInCopy
#if defined(USE_CUSTOM_DEFAULTS)
@ -746,12 +746,12 @@ static void backupAndResetConfigs(const bool useCustomDefaults)
#endif
}
static uint8_t getPidProfileIndexToUse()
static uint8_t getPidProfileIndexToUse(void)
{
return pidProfileIndexToUse == CURRENT_PROFILE_INDEX ? getCurrentPidProfileIndex() : pidProfileIndexToUse;
}
static uint8_t getRateProfileIndexToUse()
static uint8_t getRateProfileIndexToUse(void)
{
return rateProfileIndexToUse == CURRENT_PROFILE_INDEX ? getCurrentControlRateProfileIndex() : rateProfileIndexToUse;
}