1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-26 15:54:15 +01:00

LP-609 uncrustify only

This commit is contained in:
Eric Price 2022-06-16 18:34:11 +02:00
parent 3720c98906
commit fac1956da4
2 changed files with 25 additions and 24 deletions

View File

@ -920,6 +920,7 @@ static uint8_t isAssistedFlightMode(uint8_t position)
// always applying the "Assisted Control stick deadband" when
// VelocityRoam is active.
FlightModeSettingsData modeSettings;
FlightModeSettingsGet(&modeSettings);
uint8_t thisMode = FLIGHTSTATUS_FLIGHTMODE_MANUAL;
@ -942,7 +943,7 @@ static uint8_t isAssistedFlightMode(uint8_t position)
return isAssistedFlag;
}
#endif
#endif /* ifndef PIOS_EXCLUDE_ADVANCED_FEATURES */
/**
* @}

View File

@ -77,13 +77,13 @@
#define ADC_XX_PIN_NOTFOUND -1
#define maxu2(x) ((x)>99?99:(x))
#define maxu3(x) ((x)>999?999:(x))
#define maxu4(x) ((x)>9999?9999:(x))
#define maxu2(x) ((x) > 99 ? 99 : (x))
#define maxu3(x) ((x) > 999 ? 999 : (x))
#define maxu4(x) ((x) > 9999 ? 9999 : (x))
#define maxd2(x) ((x)<-99?-99:(maxu2(x)))
#define maxd3(x) ((x)<-999?-999:(maxu3(x)))
#define maxd4(x) ((x)<-9999?-9999:(maxu4(x)))
#define maxd2(x) ((x) < -99 ? -99 : (maxu2(x)))
#define maxd3(x) ((x) < -999 ? -999 : (maxu3(x)))
#define maxd4(x) ((x) < -9999 ? -9999 : (maxu4(x)))
static bool module_enabled = false;