Skip to content

Commit

Permalink
[nrfconnect] Fix window-covering app build after adding EnableKey (#2…
Browse files Browse the repository at this point in the history
…0786)

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.
  • Loading branch information
ArekBalysNordic authored Jul 15, 2022
1 parent 1f7b5f4 commit 1ecc4e6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/window-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1ecc4e6

Please sign in to comment.