diff --git a/libguh/hardware/gpiomonitor.cpp b/libguh/hardware/gpiomonitor.cpp index ee909837..dfbcf0d1 100644 --- a/libguh/hardware/gpiomonitor.cpp +++ b/libguh/hardware/gpiomonitor.cpp @@ -1,3 +1,21 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * * + * This file is part of guh. * + * * + * Guh is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, version 2 of the License. * + * * + * Guh is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with guh. If not, see . * + * * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + #include "gpiomonitor.h" GpioMonitor::GpioMonitor(QObject *parent) : diff --git a/libguh/hardware/gpiomonitor.h b/libguh/hardware/gpiomonitor.h index ae319b51..a2fd4640 100644 --- a/libguh/hardware/gpiomonitor.h +++ b/libguh/hardware/gpiomonitor.h @@ -1,3 +1,21 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * * + * This file is part of guh. * + * * + * Guh is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, version 2 of the License. * + * * + * Guh is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with guh. If not, see . * + * * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + #ifndef GPIOMONITOR_H #define GPIOMONITOR_H diff --git a/libguh/hardware/radio433/radio433receiver.cpp b/libguh/hardware/radio433/radio433receiver.cpp index 705e862b..4cc024db 100644 --- a/libguh/hardware/radio433/radio433receiver.cpp +++ b/libguh/hardware/radio433/radio433receiver.cpp @@ -33,10 +33,6 @@ Radio433Receiver::Radio433Receiver(QObject *parent, int gpio) : m_enabled = false; m_mutex.unlock(); - if(Gpio::isAvailable()){ - - } - connect(this, &Radio433Receiver::timingReady, this, &Radio433Receiver::handleTiming, Qt::DirectConnection); } diff --git a/libguh/libguh.pro b/libguh/libguh.pro index 269445b9..ebbe96b6 100644 --- a/libguh/libguh.pro +++ b/libguh/libguh.pro @@ -14,6 +14,7 @@ SOURCES += plugin/device.cpp \ plugin/devicedescriptor.cpp \ devicemanager.cpp \ hardware/gpio.cpp \ + hardware/gpiomonitor.cpp \ hardware/radio433/radio433.cpp \ hardware/radio433/radio433transmitter.cpp \ hardware/radio433/radio433receiver.cpp \ @@ -30,7 +31,6 @@ SOURCES += plugin/device.cpp \ types/param.cpp \ types/paramdescriptor.cpp \ types/statedescriptor.cpp \ - hardware/gpiomonitor.cpp HEADERS += plugin/device.h \ plugin/deviceclass.h \ @@ -38,6 +38,7 @@ HEADERS += plugin/device.h \ plugin/devicedescriptor.h \ devicemanager.h \ hardware/gpio.h \ + hardware/gpiomonitor.h \ hardware/radio433/radio433.h \ hardware/radio433/radio433transmitter.h \ hardware/radio433/radio433receiver.h \ @@ -56,5 +57,4 @@ HEADERS += plugin/device.h \ types/paramdescriptor.h \ types/statedescriptor.h \ typeutils.h \ - hardware/gpiomonitor.h