From fdea739a4b4708062a037b922f5d6fabf777c638 Mon Sep 17 00:00:00 2001 From: Michal Pelka Date: Mon, 18 May 2026 01:25:55 +0200 Subject: [PATCH] Fix beep on saving Laz on cm5 direcect Signed-off-by: Michal Pelka --- code/gpios.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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