Added default value display for CLI dump / diff.

This commit is contained in:
mikeller 2016-08-16 03:18:25 +12:00 committed by Michael Keller
parent eb83ffa58c
commit fe0a8d602e
3 changed files with 558 additions and 436 deletions

View File

@ -394,13 +394,11 @@ bool parseLedStripConfig(int ledIndex, const char *config)
return true;
}
void generateLedConfig(int ledIndex, char *ledConfigBuffer, size_t bufferSize)
void generateLedConfig(ledConfig_t *ledConfig, char *ledConfigBuffer, size_t bufferSize)
{
char directions[LED_DIRECTION_COUNT + 1];
char baseFunctionOverlays[LED_OVERLAY_COUNT + 2];
ledConfig_t *ledConfig = &masterConfig.ledConfigs[ledIndex];
memset(ledConfigBuffer, 0, bufferSize);
char *dptr = directions;

View File

@ -160,7 +160,7 @@ PG_DECLARE(specialColorIndexes_t, specialColors);
bool parseColor(int index, const char *colorConfig);
bool parseLedStripConfig(int ledIndex, const char *config);
void generateLedConfig(int ledIndex, char *ledConfigBuffer, size_t bufferSize);
void generateLedConfig(ledConfig_t *ledConfig, char *ledConfigBuffer, size_t bufferSize);
void reevaluateLedConfig(void);
void ledStripInit(ledConfig_t *ledConfigsToUse, hsvColor_t *colorsToUse, modeColorIndexes_t *modeColorsToUse, specialColorIndexes_t *specialColorsToUse);

File diff suppressed because it is too large Load Diff