From dcc54a9aec03c41eee1bbb8d158ab3b8a7dc72f4 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Fri, 29 May 2015 14:23:12 +0100 Subject: [PATCH] Remove duplicate const keywords which were generating warnings when compiling unit tests. --- src/main/io/serial.c | 4 ++-- src/main/io/serial.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/io/serial.c b/src/main/io/serial.c index 40b09b6a37..44cc7035a4 100644 --- a/src/main/io/serial.c +++ b/src/main/io/serial.c @@ -53,7 +53,7 @@ static serialConfig_t *serialConfig; 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 SERIAL_PORT_USB_VCP, #endif @@ -76,7 +76,7 @@ const serialPortIdentifier_e const serialPortIdentifiers[SERIAL_PORT_COUNT] = { 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])) diff --git a/src/main/io/serial.h b/src/main/io/serial.h index fe754eb6c7..2af50b7c89 100644 --- a/src/main/io/serial.h +++ b/src/main/io/serial.h @@ -46,7 +46,7 @@ typedef enum { BAUD_250000, } 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. typedef enum { @@ -61,7 +61,7 @@ typedef enum { SERIAL_PORT_IDENTIFIER_MAX = SERIAL_PORT_SOFTSERIAL2 } serialPortIdentifier_e; -extern const serialPortIdentifier_e const serialPortIdentifiers[SERIAL_PORT_COUNT]; +extern const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT]; // // runtime