Skip to content

Commit 02337f4

Browse files
committed
fix nrf5x build if no debugger
1 parent e8096a2 commit 02337f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/nrf5x/bluetooth.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,9 +1229,11 @@ static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context) {
12291229
// restart advertising after disconnection
12301230
if (!(bleStatus & BLE_IS_SLEEPING))
12311231
jsble_queue_pending(BLEP_ADVERTISING_START, 0); // start advertising again
1232+
#ifdef USE_DEBUGGER
12321233
// If we were debugging and got disconnected, exit the debugger
12331234
if (jsiStatus & JSIS_IN_DEBUGGER)
12341235
jsiStatus |= JSIS_EXIT_DEBUGGER;
1236+
#endif
12351237
}
12361238
if ((bleStatus & BLE_NEEDS_SOFTDEVICE_RESTART) && !jsble_has_connection())
12371239
jsble_queue_pending(BLEP_RESTART_SOFTDEVICE, 0);

0 commit comments

Comments
 (0)