From 1ecc4e6febcda8b0f7605776ddbd35d536c4b3a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Ba=C5=82ys?= Date: Fri, 15 Jul 2022 18:08:53 +0200 Subject: [PATCH] [nrfconnect] Fix window-covering app build after adding EnableKey (#20786) The nRF Connect window-covering app didn't build correctly after recent changes. The fix is to move using the namespaces into another place in the code. This change needs to be also applied in the SVE branch. --- examples/window-app/nrfconnect/main/AppTask.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/window-app/nrfconnect/main/AppTask.cpp b/examples/window-app/nrfconnect/main/AppTask.cpp index 330fb4862e6529..65b6b3f6857212 100644 --- a/examples/window-app/nrfconnect/main/AppTask.cpp +++ b/examples/window-app/nrfconnect/main/AppTask.cpp @@ -53,6 +53,9 @@ LOG_MODULE_DECLARE(app, CONFIG_MATTER_LOG_LEVEL); K_MSGQ_DEFINE(sAppEventQueue, sizeof(AppEvent), APP_EVENT_QUEUE_SIZE, alignof(AppEvent)); +using namespace ::chip; +using namespace ::chip::Credentials; +using namespace ::chip::DeviceLayer; namespace { // NOTE! This key is for test/certification only and should not be available in production devices! @@ -83,10 +86,6 @@ constexpr uint32_t kOff_ms{ 950 }; } // namespace StatusLed } // namespace LedConsts -using namespace ::chip; -using namespace ::chip::Credentials; -using namespace ::chip::DeviceLayer; - CHIP_ERROR AppTask::Init() { // Initialize CHIP stack