diff options
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}; |