1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

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;