summaryrefslogtreecommitdiff
path: root/libs/surfaces/launch_control_xl/controllers.cc
diff options
context:
space:
mode:
authorTérence Clastres <t.clastres@gmail.com>2018-08-09 19:57:34 +0200
committerTérence Clastres <t.clastres@gmail.com>2018-08-09 21:05:55 +0200
commitcbb0a33aa3f4017ffb2f5e44be37779a6e98fad0 (patch)
tree71622ad0fec080798496887b04345c0766e53839 /libs/surfaces/launch_control_xl/controllers.cc
parent24e4ba399c7dab4a483b7833fb6e68a10bdba8db (diff)
Correct formatting for if/else statements
Diffstat (limited to 'libs/surfaces/launch_control_xl/controllers.cc')
-rw-r--r--libs/surfaces/launch_control_xl/controllers.cc21
1 files changed, 7 insertions, 14 deletions
diff --git a/libs/surfaces/launch_control_xl/controllers.cc b/libs/surfaces/launch_control_xl/controllers.cc
index 75d0a1ab63..adb9509b2a 100644
--- a/libs/surfaces/launch_control_xl/controllers.cc
+++ b/libs/surfaces/launch_control_xl/controllers.cc
@@ -265,8 +265,7 @@ LaunchControlXL::track_button_by_number(uint8_t n, uint8_t first, uint8_t middle
NNNoteButtonMap::iterator b;
if ( n < 4) {
b = nn_note_button_map.find (first + n);
- }
- else {
+ } else {
b = nn_note_button_map.find (middle + n - 4);
}
@@ -295,8 +294,7 @@ LaunchControlXL::button_track_focus(uint8_t n)
if ( stripable[n]->is_selected() ) {
b->set_color(AmberFull);
- }
- else {
+ } else {
b->set_color(AmberLow);
}
write (b->state_msg());
@@ -343,8 +341,7 @@ LaunchControlXL::update_track_control_led(uint8_t n)
case TrackMute:
if (ac->get_value()) {
b->set_color(AmberFull);
- }
- else {
+ } else {
b->set_color(AmberLow);
}
break;
@@ -353,12 +350,10 @@ LaunchControlXL::update_track_control_led(uint8_t n)
if (ac && stripable[n] != master ) {
if (ac->get_value()) {
b->set_color(GreenFull);
- }
- else {
+ } else {
b->set_color(GreenLow);
}
- }
- else {
+ } else {
b->set_color(Off);
}
break;
@@ -367,12 +362,10 @@ LaunchControlXL::update_track_control_led(uint8_t n)
if (ac) {
if (ac->get_value()) {
b->set_color(RedFull);
- }
- else {
+ } else {
b->set_color(RedLow);
}
- }
- else {
+ } else {
}
break;