Commit 3004ed1e authored by Mall, Anon's avatar Mall, Anon
Browse files

notify observer on offset change

parent fd91aa14
......@@ -310,6 +310,12 @@ LinakDesk::doDeskControl(void)
}
void LinakDesk::setOffset(int offset){
Controller::setOffset(offset);
notifyFrontends(getHeight());
}
LinakDesk::~LinakDesk()
{
libusb_close(m_udev);
......
......@@ -35,7 +35,7 @@ class Controller
virtual void doDeskControl(void) = 0;
void setOffset(int offset);
virtual void setOffset(int offset);
int getOffset();
virtual void setHeight(int height) = 0;
......@@ -102,6 +102,7 @@ class LinakDesk : public Controller
virtual void doDeskControl(void);
virtual void setHeight(int height);
virtual int getHeight();
virtual void setOffset(int offset);
uint16_t move(Command cmd);
virtual ~LinakDesk();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment