mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Fixed compiler warnings.
This commit is contained in:
parent
4c3c8a1b48
commit
37fe46fdd3
3 changed files with 10 additions and 6 deletions
|
@ -444,7 +444,7 @@ void mixerInit(mixerMode_e mixerMode, motorMixer_t *initialCustomMixers)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_SERVOS
|
#ifdef USE_SERVOS
|
||||||
void mixerUsePWMIOConfiguration(pwmIOConfiguration_t *pwmIOConfiguration)
|
void mixerUsePWMIOConfiguration(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -482,9 +482,8 @@ void mixerUsePWMIOConfiguration(pwmIOConfiguration_t *pwmIOConfiguration)
|
||||||
mixerResetDisarmedMotors();
|
mixerResetDisarmedMotors();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void mixerUsePWMIOConfiguration(pwmIOConfiguration_t *pwmIOConfiguration)
|
void mixerUsePWMIOConfiguration(void)
|
||||||
{
|
{
|
||||||
UNUSED(pwmIOConfiguration);
|
|
||||||
motorCount = 4;
|
motorCount = 4;
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
for (i = 0; i < motorCount; i++) {
|
for (i = 0; i < motorCount; i++) {
|
||||||
|
|
|
@ -114,7 +114,7 @@ void mixerInit(mixerMode_e mixerMode, motorMixer_t *customMotorMixers, servoMixe
|
||||||
#else
|
#else
|
||||||
void mixerInit(mixerMode_e mixerMode, motorMixer_t *customMotorMixers);
|
void mixerInit(mixerMode_e mixerMode, motorMixer_t *customMotorMixers);
|
||||||
#endif
|
#endif
|
||||||
void mixerUsePWMIOConfiguration(pwmIOConfiguration_t *pwmIOConfiguration);
|
void mixerUsePWMIOConfiguration(void);
|
||||||
void rxInit(rxConfig_t *rxConfig, modeActivationCondition_t *modeActivationConditions);
|
void rxInit(rxConfig_t *rxConfig, modeActivationCondition_t *modeActivationConditions);
|
||||||
void gpsPreInit(gpsConfig_t *initialGpsConfig);
|
void gpsPreInit(gpsConfig_t *initialGpsConfig);
|
||||||
void gpsInit(serialConfig_t *serialConfig, gpsConfig_t *initialGpsConfig);
|
void gpsInit(serialConfig_t *serialConfig, gpsConfig_t *initialGpsConfig);
|
||||||
|
@ -282,9 +282,9 @@ void init(void)
|
||||||
pwmRxInit(masterConfig.inputFilteringMode);
|
pwmRxInit(masterConfig.inputFilteringMode);
|
||||||
|
|
||||||
// pwmInit() needs to be called as soon as possible for ESC compatibility reasons
|
// pwmInit() needs to be called as soon as possible for ESC compatibility reasons
|
||||||
pwmIOConfiguration_t *pwmIOConfiguration = pwmInit(&pwm_params);
|
pwmInit(&pwm_params);
|
||||||
|
|
||||||
mixerUsePWMIOConfiguration(pwmIOConfiguration);
|
mixerUsePWMIOConfiguration();
|
||||||
|
|
||||||
if (!feature(FEATURE_ONESHOT125))
|
if (!feature(FEATURE_ONESHOT125))
|
||||||
motorControlEnable = true;
|
motorControlEnable = true;
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
|
|
||||||
#ifdef TELEMETRY
|
#ifdef TELEMETRY
|
||||||
|
|
||||||
|
#include "common/utils.h"
|
||||||
|
|
||||||
#include "drivers/gpio.h"
|
#include "drivers/gpio.h"
|
||||||
#include "drivers/timer.h"
|
#include "drivers/timer.h"
|
||||||
#include "drivers/serial.h"
|
#include "drivers/serial.h"
|
||||||
|
@ -106,6 +108,9 @@ void telemetryProcess(rxConfig_t *rxConfig, uint16_t deadband3d_throttle)
|
||||||
{
|
{
|
||||||
#if defined(TELEMETRY_FRSKY)
|
#if defined(TELEMETRY_FRSKY)
|
||||||
handleFrSkyTelemetry(rxConfig, deadband3d_throttle);
|
handleFrSkyTelemetry(rxConfig, deadband3d_throttle);
|
||||||
|
#else
|
||||||
|
UNUSED(rxConfig);
|
||||||
|
UNUSED(deadband3d_throttle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(TELEMETRY_HOTT)
|
#if defined(TELEMETRY_HOTT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue