summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/led.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2018-02-02 09:26:17 -0600
committerBen Loftis <ben@harrisonconsoles.com>2018-02-02 09:27:37 -0600
commit3aacdd79ae7537f507e6ee86ad6ffb85bc55bdfc (patch)
treeb61e115ac8a124cd8db5bfa1f2b96a34353d3ccb /libs/surfaces/mackie/led.cc
parent16a5e3ce55be272ec8934996a474e9beb6b8c9f2 (diff)
Fixes for the iCON Qcon mcp device - LED rings. Submitted by Michal Barhon : mbarhon@seznam.cz
Diffstat (limited to 'libs/surfaces/mackie/led.cc')
-rw-r--r--libs/surfaces/mackie/led.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/libs/surfaces/mackie/led.cc b/libs/surfaces/mackie/led.cc
index 59b9f6cb20..9f46ad5e8e 100644
--- a/libs/surfaces/mackie/led.cc
+++ b/libs/surfaces/mackie/led.cc
@@ -35,6 +35,7 @@ Led::factory (Surface& surface, int id, const char* name, Group& group)
{
Led* l = new Led (id, name, group);
surface.leds[id] = l;
+ l->is_qcon = surface.get_qcon_flag(); // get qcon flag from surface
surface.controls.push_back (l);
group.add (*l);
return l;
@@ -55,8 +56,17 @@ Led::set_state (LedState new_state)
msg = 0x00;
break;
case LedState::flashing:
- msg = 0x01;
+
+ if( !is_qcon ) { // Standard mackie surfaces supports flashing LEDs
+ msg = 0x01;
+ break;
+ } else {
+ msg = 0x7f; // For qcon set LED to ON state - qcon don't support LED flashing.
+ break;
+ }
+
break;
+
case LedState::none:
return MidiByteArray ();
}