summaryrefslogtreecommitdiff
path: root/libs/surfaces/us2400/led.h
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-10-19 11:53:08 -0500
committerBen Loftis <ben@harrisonconsoles.com>2017-10-19 11:54:36 -0500
commit2a310e5f798e7921715cd11e17e61327d2614e6d (patch)
tree8b687c151dd20d78dbbe8a8fc2e40242d0fbb594 /libs/surfaces/us2400/led.h
parentee09ae1c6bd285388159a3a69f12fc53faf247e2 (diff)
US2400: Mark controls dirty and send them from the periodic update thread.
Diffstat (limited to 'libs/surfaces/us2400/led.h')
-rw-r--r--libs/surfaces/us2400/led.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/surfaces/us2400/led.h b/libs/surfaces/us2400/led.h
index 4ef4660d55..1259723878 100644
--- a/libs/surfaces/us2400/led.h
+++ b/libs/surfaces/us2400/led.h
@@ -41,12 +41,13 @@ public:
Led (int id, std::string name, Group & group)
: Control (id, name, group)
- , state (off)
- , last_state (off)
- , llast_state (on)
+ , last_state (none)
+ , llast_state (none)
{
}
+ void mark_dirty() { last_state = llast_state = none; }
+
Led & led() { return *this; }
MidiByteArray set_state (LedState);
@@ -55,7 +56,6 @@ public:
static Control* factory (Surface&, int id, const char*, Group&);
private:
- LedState state;
LedState last_state;
LedState llast_state;
};