diff --git a/libnymea-gpio/gpiomonitor.cpp b/libnymea-gpio/gpiomonitor.cpp index 4e6a3c1..cbd9e85 100644 --- a/libnymea-gpio/gpiomonitor.cpp +++ b/libnymea-gpio/gpiomonitor.cpp @@ -92,6 +92,11 @@ GpioMonitor::~GpioMonitor() wait(200); } +int GpioMonitor::gpioNumber() const +{ + return m_gpioNumber; +} + /*! Returns the edge interrupt configuration for this GpioMonitor. */ Gpio::Edge GpioMonitor::edge() const { diff --git a/libnymea-gpio/gpiomonitor.h b/libnymea-gpio/gpiomonitor.h index e1e6fe6..5eb1c5d 100644 --- a/libnymea-gpio/gpiomonitor.h +++ b/libnymea-gpio/gpiomonitor.h @@ -44,6 +44,8 @@ public: explicit GpioMonitor(int gpio, QObject *parent = nullptr); ~GpioMonitor() override; + int gpioNumber() const; + Gpio::Edge edge() const; void setEdge(Gpio::Edge edge);