Skip to content

Commit

Permalink
samples: matter: Workaround API changes
Browse files Browse the repository at this point in the history
Set `ActiveMode` of ICDManager using OnNetworkActivity method.

Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
  • Loading branch information
adigie committed Nov 15, 2024
1 parent eba0a1f commit 8f915fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/matter/light_switch/src/app_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void AppTask::ButtonEventHandler(Nrf::ButtonState state, Nrf::ButtonMask hasChan
#ifdef CONFIG_CHIP_ICD_UAT_SUPPORT
} else if ((UAT_BUTTON_MASK & state & hasChanged)) {
LOG_INF("ICD UserActiveMode has been triggered.");
Server::GetInstance().GetICDManager().UpdateOperationState(ICDManager::OperationalState::ActiveMode);
Server::GetInstance().GetICDManager().OnNetworkActivity();
#endif
}
}
Expand Down
2 changes: 1 addition & 1 deletion samples/matter/smoke_co_alarm/src/app_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void AppTask::ButtonEventHandler(Nrf::ButtonState state, Nrf::ButtonMask hasChan
#ifdef CONFIG_CHIP_ICD_UAT_SUPPORT
if ((UAT_BUTTON_MASK & state & hasChanged)) {
LOG_INF("ICD UserActiveMode has been triggered.");
Server::GetInstance().GetICDManager().UpdateOperationState(ICDManager::OperationalState::ActiveMode);
Server::GetInstance().GetICDManager().OnNetworkActivity();
}
#endif
}
Expand Down

0 comments on commit 8f915fe

Please sign in to comment.