@@ -281,7 +281,7 @@ static FILE *btmon = (FILE *) &(struct File) {
281281static void
282282drops_tmp_cb (struct ble_npl_event * ev )
283283{
284- ble_npl_mutex_pend (& lock , OS_TIMEOUT_NEVER );
284+ ble_npl_mutex_pend (& lock , BLE_NPL_TIME_FOREVER );
285285
286286 /*
287287 * There's no "nop" in btsnoop protocol so we just send empty system note
@@ -352,7 +352,7 @@ ble_monitor_init(void)
352352int
353353ble_monitor_send (uint16_t opcode , const void * data , size_t len )
354354{
355- ble_npl_mutex_pend (& lock , OS_TIMEOUT_NEVER );
355+ ble_npl_mutex_pend (& lock , BLE_NPL_TIME_FOREVER );
356356
357357 monitor_write_header (opcode , len );
358358 monitor_write (data , len );
@@ -374,7 +374,7 @@ ble_monitor_send_om(uint16_t opcode, const struct os_mbuf *om)
374374 om_tmp = SLIST_NEXT (om_tmp , om_next );
375375 }
376376
377- ble_npl_mutex_pend (& lock , OS_TIMEOUT_NEVER );
377+ ble_npl_mutex_pend (& lock , BLE_NPL_TIME_FOREVER );
378378
379379 monitor_write_header (opcode , length );
380380
@@ -436,7 +436,7 @@ ble_monitor_log(int level, const char *fmt, ...)
436436
437437 ulog .ident_len = sizeof (id );
438438
439- ble_npl_mutex_pend (& lock , OS_TIMEOUT_NEVER );
439+ ble_npl_mutex_pend (& lock , BLE_NPL_TIME_FOREVER );
440440
441441 monitor_write_header (BLE_MONITOR_OPCODE_USER_LOGGING ,
442442 sizeof (ulog ) + sizeof (id ) + len + 1 );
0 commit comments