diff --git a/code/gpios.h b/code/gpios.h index 639b28f..998d91f 100644 --- a/code/gpios.h +++ b/code/gpios.h @@ -13,6 +13,7 @@ struct gpiod_line; namespace mandeye { + using namespace hardware; // forward declaration of cppgpio type that I want to keep inside compliation unit @@ -108,7 +109,8 @@ class GpioClient std::mutex m_lock; std::atomic m_running{true}; }; -static std::mutex gpioClientPtrLock; -static std::shared_ptr gpioClientPtr; + +inline std::mutex gpioClientPtrLock; +inline std::shared_ptr gpioClientPtr; } // namespace mandeye \ No newline at end of file