From 395da4b6861540fcad778cfa0b9ec1f7c16274d6 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 16 Oct 2021 16:13:43 +0200 Subject: Added explicit empty consturctor for Gpio --- daemon/src/Gpio.cpp | 6 ++++++ daemon/src/Gpio.h | 1 + 2 files changed, 7 insertions(+) (limited to 'daemon') 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}; -- cgit v1.1