diff options
author | Aki <please@ignore.pl> | 2021-10-16 16:13:43 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-10-16 16:13:43 +0200 |
commit | 395da4b6861540fcad778cfa0b9ec1f7c16274d6 (patch) | |
tree | 2ab7749bb32219e2d2c86ca69f0eadd6eef583eb /daemon | |
parent | 44c3b1d6c41f19c1e9d3f43ec4c7188f868ca08f (diff) | |
download | hwd-395da4b6861540fcad778cfa0b9ec1f7c16274d6.zip hwd-395da4b6861540fcad778cfa0b9ec1f7c16274d6.tar.gz hwd-395da4b6861540fcad778cfa0b9ec1f7c16274d6.tar.bz2 |
Added explicit empty consturctor for Gpio
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/src/Gpio.cpp | 6 | ||||
-rw-r--r-- | daemon/src/Gpio.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/daemon/src/Gpio.cpp b/daemon/src/Gpio.cpp index 75d2ff1..138bce7 100644 --- a/daemon/src/Gpio.cpp +++ b/daemon/src/Gpio.cpp @@ -7,6 +7,12 @@ #include "Assembly.h" +Gpio::Gpio() noexcept : + mode_of {}, + value_of {} +{} + + void Gpio::apply(AssemblyContext ctx) { ctx.bind("/set_mode", [&](const unsigned port, const short mode){ set_mode(port, mode); }); diff --git a/daemon/src/Gpio.h b/daemon/src/Gpio.h index e3941f6..81e048f 100644 --- a/daemon/src/Gpio.h +++ b/daemon/src/Gpio.h @@ -10,6 +10,7 @@ class Gpio { public: + Gpio() noexcept; void apply(AssemblyContext ctx); private: static constexpr unsigned SIZE {24}; |