astyle with current project style guidelines

pull/365/head
Jesse Vincent 8 years ago
parent 63835fa1bd
commit 89c79ef6fe
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -179,8 +179,7 @@ LEDControl_::focusHook (const char *command) {
return false; return false;
switch (subCommand) { switch (subCommand) {
case AT: case AT: {
{
uint8_t idx = Serial.parseInt(); uint8_t idx = Serial.parseInt();
if (Serial.peek() == '\n') { if (Serial.peek() == '\n') {
@ -199,8 +198,7 @@ LEDControl_::focusHook (const char *command) {
} }
break; break;
} }
case SETALL: case SETALL: {
{
cRGB c; cRGB c;
c.r = Serial.parseInt(); c.r = Serial.parseInt();
@ -211,8 +209,7 @@ LEDControl_::focusHook (const char *command) {
break; break;
} }
case MODE: case MODE: {
{
char peek = Serial.peek(); char peek = Serial.peek();
if (peek == '\n') { if (peek == '\n') {
Serial.println(LEDControl.get_mode()); Serial.println(LEDControl.get_mode());
@ -229,8 +226,7 @@ LEDControl_::focusHook (const char *command) {
} }
break; break;
} }
case THEME: case THEME: {
{
if (Serial.peek() == '\n') { if (Serial.peek() == '\n') {
for (uint8_t idx = 0; idx < LED_COUNT; idx++) { for (uint8_t idx = 0; idx < LED_COUNT; idx++) {
cRGB c = LEDControl.led_get_crgb_at(idx); cRGB c = LEDControl.led_get_crgb_at(idx);

Loading…
Cancel
Save