summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/launch_control_xl/controllers.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaces/launch_control_xl/controllers.cc b/libs/surfaces/launch_control_xl/controllers.cc
index f14fd00718..75d0a1ab63 100644
--- a/libs/surfaces/launch_control_xl/controllers.cc
+++ b/libs/surfaces/launch_control_xl/controllers.cc
@@ -263,11 +263,11 @@ LaunchControlXL::TrackButton*
LaunchControlXL::track_button_by_number(uint8_t n, uint8_t first, uint8_t middle)
{
NNNoteButtonMap::iterator b;
- if ( n < 5) {
+ if ( n < 4) {
b = nn_note_button_map.find (first + n);
}
else {
- b = nn_note_button_map.find (middle + n - 5);
+ b = nn_note_button_map.find (middle + n - 4);
}
TrackButton* button = 0;