1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 17:55:28 +03:00

Fix function prototypes and macos warnings

This commit is contained in:
Marcelo Bezerra 2024-04-27 13:11:40 +02:00
parent 5e2dc06487
commit a53296abb7
3 changed files with 3 additions and 3 deletions

View file

@ -728,7 +728,7 @@ bool areMotorsRunning(void)
return false; return false;
} }
uint16_t getMaxThrottle() { uint16_t getMaxThrottle(void) {
static uint16_t throttle = 0; static uint16_t throttle = 0;

View file

@ -79,7 +79,7 @@ void pgResetFn_mixerProfiles(mixerProfile_t *instance)
} }
} }
void activateMixerConfig(){ void activateMixerConfig(void){
currentMixerProfileIndex = getConfigMixerProfile(); currentMixerProfileIndex = getConfigMixerProfile();
currentMixerConfig = *mixerConfig(); currentMixerConfig = *mixerConfig();
nextMixerProfileIndex = (currentMixerProfileIndex + 1) % MAX_MIXER_PROFILE_COUNT; nextMixerProfileIndex = (currentMixerProfileIndex + 1) % MAX_MIXER_PROFILE_COUNT;

View file

@ -525,7 +525,7 @@ void mspOsdSerialProcess(mspProcessCommandFnPtr mspProcessCommandFn)
} }
} }
mspPort_t *getMspOsdPort() mspPort_t *getMspOsdPort(void)
{ {
if (mspPort.port) { if (mspPort.port) {
return &mspPort; return &mspPort;