Skip to content

Commit

Permalink
Delaying NCP sleep till wifi connection
Browse files Browse the repository at this point in the history
  • Loading branch information
bhmanda-silabs committed Dec 13, 2024
1 parent f96399a commit 9609095
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/platform/silabs/wifi/icd/ApplicationSleepManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,17 @@ bool ApplicationSleepManager::ProcessKeychainEdgeCase()
void ApplicationSleepManager::OnEnterActiveMode()
{
mIsInActiveMode = true;
#if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1)
mWifiSleepManager->VerifyAndTransitionToLowPowerMode();
#endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1)
}

void ApplicationSleepManager::OnEnterIdleMode()
{
mIsInActiveMode = false;
#if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1)
mWifiSleepManager->VerifyAndTransitionToLowPowerMode();
#endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1)
}

void ApplicationSleepManager::OnTransitionToIdle()
Expand Down

0 comments on commit 9609095

Please sign in to comment.