1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Cleanup unit test compiler flags. Fix compiler warnings in unit test

and related code.
This commit is contained in:
Dominic Clifton 2015-01-14 15:09:00 +00:00
parent bf88696847
commit 30b928c0bc
7 changed files with 51 additions and 38 deletions

View file

@ -185,6 +185,7 @@ static const modeColorIndexes_t angleModeColors = {
COLOR_ORANGE
};
#ifdef MAG
static const modeColorIndexes_t magModeColors = {
COLOR_MINT_GREEN,
COLOR_DARK_VIOLET,
@ -193,6 +194,7 @@ static const modeColorIndexes_t magModeColors = {
COLOR_BLUE,
COLOR_ORANGE
};
#endif
static const modeColorIndexes_t baroModeColors = {
COLOR_LIGHT_BLUE,
@ -788,9 +790,9 @@ void updateLedStrip(void)
ws2811UpdateStrip();
}
bool parseColor(uint8_t index, char *colorConfig)
bool parseColor(uint8_t index, const char *colorConfig)
{
char *remainingCharacters = colorConfig;
const char *remainingCharacters = colorConfig;
hsvColor_t *color = &colors[index];