mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
various: tidy up various things found when building with a C++ compiler.
Remove duplicate consts. Pull in the include files where functions and variables are declared. Mark file local but duplicated variables as static. Mark some variable declarations as extern. Remove duplicated variable definition. Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
parent
49e22265dc
commit
5c6760fd82
15 changed files with 27 additions and 23 deletions
|
@ -151,7 +151,7 @@ typedef struct beeperTableEntry_s {
|
|||
#define BEEPER_ENTRY(a,b,c,d) a,b,c
|
||||
#endif
|
||||
|
||||
static const beeperTableEntry_t const beeperTable[] = {
|
||||
static const beeperTableEntry_t beeperTable[] = {
|
||||
{ BEEPER_ENTRY(BEEPER_GYRO_CALIBRATED, 0, beep_gyroCalibrated, "GYRO_CALIBRATED") },
|
||||
{ BEEPER_ENTRY(BEEPER_RX_LOST_LANDING, 1, beep_sos, "RX_LOST_LANDING") },
|
||||
{ BEEPER_ENTRY(BEEPER_RX_LOST, 2, beep_txLostBeep, "RX_LOST") },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue