mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Remove duplicate const keywords which were generating warnings when
compiling unit tests.
This commit is contained in:
parent
55180070d6
commit
dcc54a9aec
2 changed files with 4 additions and 4 deletions
|
@ -53,7 +53,7 @@
|
||||||
static serialConfig_t *serialConfig;
|
static serialConfig_t *serialConfig;
|
||||||
static serialPortUsage_t serialPortUsageList[SERIAL_PORT_COUNT];
|
static serialPortUsage_t serialPortUsageList[SERIAL_PORT_COUNT];
|
||||||
|
|
||||||
const serialPortIdentifier_e const serialPortIdentifiers[SERIAL_PORT_COUNT] = {
|
const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT] = {
|
||||||
#ifdef USE_VCP
|
#ifdef USE_VCP
|
||||||
SERIAL_PORT_USB_VCP,
|
SERIAL_PORT_USB_VCP,
|
||||||
#endif
|
#endif
|
||||||
|
@ -76,7 +76,7 @@ const serialPortIdentifier_e const serialPortIdentifiers[SERIAL_PORT_COUNT] = {
|
||||||
|
|
||||||
static uint8_t serialPortCount;
|
static uint8_t serialPortCount;
|
||||||
|
|
||||||
const uint32_t const baudRates[] = {0, 9600, 19200, 38400, 57600, 115200, 230400, 250000}; // see baudRate_e
|
const uint32_t baudRates[] = {0, 9600, 19200, 38400, 57600, 115200, 230400, 250000}; // see baudRate_e
|
||||||
|
|
||||||
#define BAUD_RATE_COUNT (sizeof(baudRates) / sizeof(baudRates[0]))
|
#define BAUD_RATE_COUNT (sizeof(baudRates) / sizeof(baudRates[0]))
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ typedef enum {
|
||||||
BAUD_250000,
|
BAUD_250000,
|
||||||
} baudRate_e;
|
} baudRate_e;
|
||||||
|
|
||||||
extern const uint32_t const baudRates[];
|
extern const uint32_t baudRates[];
|
||||||
|
|
||||||
// serial port identifiers are now fixed, these values are used by MSP commands.
|
// serial port identifiers are now fixed, these values are used by MSP commands.
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -61,7 +61,7 @@ typedef enum {
|
||||||
SERIAL_PORT_IDENTIFIER_MAX = SERIAL_PORT_SOFTSERIAL2
|
SERIAL_PORT_IDENTIFIER_MAX = SERIAL_PORT_SOFTSERIAL2
|
||||||
} serialPortIdentifier_e;
|
} serialPortIdentifier_e;
|
||||||
|
|
||||||
extern const serialPortIdentifier_e const serialPortIdentifiers[SERIAL_PORT_COUNT];
|
extern const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT];
|
||||||
|
|
||||||
//
|
//
|
||||||
// runtime
|
// runtime
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue