Skip to content
Snippets Groups Projects
Commit b090beff authored by Lucio Zambon's avatar Lucio Zambon
Browse files

fix RF bits

parent f7b5c1da
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ ptiming::ptiming(QWidget *parent) : QWidget(parent)
// exit(EXIT_FAILURE);
return;
}
refresh();
// refresh(); don't trigger refresh before stat1 & stat2 are ready
// connect to timer
try {
timer = new QTimer(this);
......@@ -62,8 +62,10 @@ ptiming::~ptiming()
{
}
void setState(TLed *w, bool state) {
w->disableWidget();
w->setTrueColor(QColor(state? "#00b400": "#c40000"));
w->setFalseColor(QColor(state? "#00b400": "#c40000"));
w->enableWidget();
}
void ptiming::refresh()
......
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