Skip to content

Commit

Permalink
[nrfconnect] Fixed problem with building without DFU (#16819)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArekBalysNordic authored and pull[bot] committed Sep 29, 2023
1 parent 258961c commit 3d459ff
Showing 1 changed file with 11 additions and 5 deletions.
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

0 comments on commit 3d459ff

Please sign in to comment.