nimble/ll: Always send assert vs event if enabled

We should always send assert vs event if enabled, regardless if we'll
break due to attached debugger or not. This is useful when using monitor
over RTT since using RTT means debugger is attached even though we may
not actually have sw debugger running.
This commit is contained in:
Andrzej Kaczmarek
2022-09-28 23:49:54 +02:00
parent b36ce21bc1
commit ef03c7c1c6
+2 -2
View File
@@ -1742,10 +1742,10 @@ ble_ll_is_addr_empty(const uint8_t *addr)
void
ble_ll_assert(const char *file, unsigned line)
{
ble_ll_hci_ev_send_vs_assert(file, line);
if (hal_debugger_connected()) {
__BKPT(0);
} else {
ble_ll_hci_ev_send_vs_assert(file, line); \
}
while (1);