diff options
author | Térence Clastres <t.clastres@gmail.com> | 2018-08-09 20:53:50 +0200 |
---|---|---|
committer | Térence Clastres <t.clastres@gmail.com> | 2018-08-09 21:38:56 +0200 |
commit | 5276a9941be3a841c6842a36f1e68c10d9454563 (patch) | |
tree | 15d395426cdc5009bdbe117bd0265da804b7829a | |
parent | a9958840b00135efffe718980c36d8d61af855af (diff) |
Call switch_bank() and use button_track_mode() within it to init required LEDs
-rw-r--r-- | libs/surfaces/launch_control_xl/launch_control_xl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/surfaces/launch_control_xl/launch_control_xl.cc b/libs/surfaces/launch_control_xl/launch_control_xl.cc index d583aa05dd..699e7a84b5 100644 --- a/libs/surfaces/launch_control_xl/launch_control_xl.cc +++ b/libs/surfaces/launch_control_xl/launch_control_xl.cc @@ -251,9 +251,9 @@ void LaunchControlXL::init_buttons (bool startup) { reset(template_number()); - + if (startup) { - button_track_mode(track_mode()); + switch_bank(bank_start); } } @@ -866,7 +866,7 @@ LaunchControlXL::switch_bank (uint32_t base) button_track_focus(n); - update_track_control_led(n); + button_track_mode(track_mode()); } } } |