mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 08:15:26 +03:00
clean up gcc 6.1.1 warnings
This commit is contained in:
parent
a8a9ba82c5
commit
eb9cd8de23
4 changed files with 5 additions and 14 deletions
|
@ -83,7 +83,7 @@ static inline uint8_t __basepriSetRetVal(uint8_t prio)
|
|||
// ideally this would only protect memory passed as parameter (any type should work), but gcc is currently creating almost full barrier
|
||||
// this macro can be used only ONCE PER LINE, but multiple uses per block are fine
|
||||
|
||||
#if (__GNUC__ > 5)
|
||||
#if (__GNUC__ > 6)
|
||||
#warning "Please verify that ATOMIC_BARRIER works as intended"
|
||||
// increment version number is BARRIER works
|
||||
// TODO - use flag to disable ATOMIC_BARRIER and use full barrier instead
|
||||
|
|
|
@ -83,11 +83,6 @@ static const uint8_t ubloxInit_NAV5_Airborne4G[] = {
|
|||
0x00, 0xC8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x6C
|
||||
};
|
||||
|
||||
static const uint8_t ubloxInit_NAVX5[] = {
|
||||
0xB5, 0x62, 0x06, 0x23, 0x28, 0x00, 0x00, 0x00, 0x4C, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // CFG-NAVX5 min 5 SV
|
||||
0x05, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xCD,
|
||||
};
|
||||
|
||||
static const uint8_t ubloxInit_MSG_NMEA[] = {
|
||||
// DISABLE NMEA messages
|
||||
|
|
|
@ -373,10 +373,6 @@ static const char * const lookupTableSerialRX[] = {
|
|||
"IBUS"
|
||||
};
|
||||
|
||||
static const char * const lookupTableGyroFilter[] = {
|
||||
"OFF", "LOW", "MEDIUM", "HIGH"
|
||||
};
|
||||
|
||||
static const char * const lookupTableGyroLpf[] = {
|
||||
"256HZ",
|
||||
"188HZ",
|
||||
|
|
|
@ -105,7 +105,7 @@ void printfSupportInit(void);
|
|||
void timerInit(void);
|
||||
void telemetryInit(void);
|
||||
void serialInit(serialConfig_t *initialSerialConfig, bool softserialEnabled);
|
||||
void mspInit(serialConfig_t *serialConfig);
|
||||
void mspInit();
|
||||
void cliInit(serialConfig_t *serialConfig);
|
||||
void failsafeInit(rxConfig_t *intialRxConfig, uint16_t deadband3d_throttle);
|
||||
pwmIOConfiguration_t *pwmInit(drv_pwm_config_t *init);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue