Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nrfconnect] Fixed problem with building Light Switch app example without DFU #16819

Merged
merged 1 commit into from
Mar 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions examples/light-switch-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ LEDWidget sUnusedLED;
bool sIsThreadProvisioned = false;
bool sIsThreadEnabled = false;
bool sIsThreadBLEAdvertising = false;
bool sIsSMPAdvertising = false;
bool sHaveBLEConnections = false;
bool sWasDimmerTriggered = false;
#ifdef CONFIG_MCUMGR_SMP_BT
bool sIsSMPAdvertising = false;
#endif
bool sHaveBLEConnections = false;
bool sWasDimmerTriggered = false;

k_timer sFunctionTimer;
k_timer sDimmerPressKeyTimer;
Expand Down Expand Up @@ -417,8 +419,9 @@ void AppTask::UpdateStatusLED()
sStatusLED.Set(false);
}

// Ble LED indicates BLE connectivity:
//- blinking 200 ms means BLE advertising
// Ble LED indicates BLE connectivity:
//- blinking 200 ms means BLE advertising
#ifdef CONFIG_MCUMGR_SMP_BT
if (sIsSMPAdvertising)
{
sBleLED.Blink(30, 170);
Expand All @@ -427,6 +430,9 @@ void AppTask::UpdateStatusLED()
{
sBleLED.Set(false);
}
#else
sBleLED.Set(false);
#endif
#endif
}

Expand Down