-/* $Id$
-
-This file is part of libmspgbase
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "binarycontrol.h"
#include "device.h"
void BinaryControl::set_threshold(float t)
{
- threshold=t;
+ threshold = t;
}
void BinaryControl::on_press()
{
if(!state)
{
- state=true;
+ state = true;
signal_press.emit();
}
}
{
if(state)
{
- state=false;
+ state = false;
signal_release.emit();
}
}