mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-26 22:34:22 +02:00
2019-05-24 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdgpimon(1) that caused GPIO status to fail to be displayed in the status widgets.
This commit is contained in:
parent
4a59a80fe2
commit
f6fa420cfd
@ -18693,3 +18693,6 @@
|
||||
* Added an 'RDSocketStrings()' function in
|
||||
'lib/rdsocketstrings.[cpp|h]'.
|
||||
* Fixed a bug in 'RDLiveWire' that caused false watchdog triggers.
|
||||
2019-05-24 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a regression in rdgpimon(1) that caused GPIO status
|
||||
to fail to be displayed in the status widgets.
|
||||
|
@ -41,6 +41,7 @@ GpiLabel::GpiLabel(QWidget *parent)
|
||||
gpi_line_label->setFont(line_font);
|
||||
gpi_line_label->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
|
||||
gpi_line_label->setPalette(Qt::gray);
|
||||
gpi_line_label->setStyleSheet("background-color:"+QColor(Qt::gray).name());
|
||||
|
||||
//
|
||||
// On Cart Label
|
||||
@ -98,9 +99,13 @@ void GpiLabel::setState(bool state)
|
||||
{
|
||||
if(state) {
|
||||
gpi_line_label->setPalette(Qt::green);
|
||||
gpi_line_label->
|
||||
setStyleSheet("background-color:"+QColor(Qt::green).name());
|
||||
}
|
||||
else {
|
||||
gpi_line_label->setPalette(Qt::gray);
|
||||
gpi_line_label->
|
||||
setStyleSheet("background-color:"+QColor(Qt::gray).name());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -435,7 +435,7 @@ void MainWidget::eventsReportData()
|
||||
|
||||
void MainWidget::gpiStateChangedData(int matrix,int line,bool state)
|
||||
{
|
||||
// printf("gpiStateChanged(%d,%d,%d)\n",matrix,line,state);
|
||||
// printf("gpiStateChanged(%d,%d,%d)\n",matrix,line,state);
|
||||
|
||||
if(gpi_type_box->currentItem()!=RDMatrix::GpioInput) {
|
||||
return;
|
||||
@ -454,7 +454,7 @@ void MainWidget::gpiStateChangedData(int matrix,int line,bool state)
|
||||
|
||||
void MainWidget::gpoStateChangedData(int matrix,int line,bool state)
|
||||
{
|
||||
// printf("gpoStateChanged(%d,%d,%d)\n",matrix,line,state);
|
||||
// printf("gpoStateChanged(%d,%d,%d)\n",matrix,line,state);
|
||||
|
||||
if(gpi_type_box->currentItem()!=RDMatrix::GpioOutput) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user