Compare commits
No commits in common. "e9f50ca30b5448bf2e479d52cd7a90f1fac00bdf" and "9a472decf103d371583502104c8d964b3ab9f38b" have entirely different histories.
e9f50ca30b
...
9a472decf1
@ -75,9 +75,6 @@ bool ble_modem_off(void)
|
||||
}
|
||||
};
|
||||
|
||||
// Don't forget to set the rf bt mode to it's default config
|
||||
tls_rf_bt_mode(false);
|
||||
|
||||
status = tls_bt_deinit();
|
||||
|
||||
if((status != BLE_HS_ENOERR) && (status != BLE_HS_EALREADY)) {
|
||||
@ -86,8 +83,8 @@ bool ble_modem_off(void)
|
||||
|
||||
if(status != BLE_HS_EALREADY)
|
||||
{
|
||||
// Starting a wifi scan really stops the BT modem ?? Why ? I don't know
|
||||
tls_wifi_passive_scan();
|
||||
//Starting a wifi scan really stops the BT modem ?? Why ? I don't know
|
||||
tls_wifi_scan();
|
||||
}
|
||||
|
||||
return ((status == BLE_HS_ENOERR || status == BLE_HS_EALREADY) && serviceStopSuccess) ? true : false;
|
||||
|
@ -96,7 +96,6 @@ ble_npl_eventq_deinit(struct ble_npl_eventq *evq)
|
||||
{
|
||||
if(evq && evq->q) {
|
||||
tls_os_queue_delete(evq->q);
|
||||
evq->q = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -248,12 +248,8 @@ os_callout_timer_cb(void *ptmr, void *parg)
|
||||
struct ble_npl_callout *co;
|
||||
co = (struct ble_npl_callout *)parg;
|
||||
|
||||
if(co->evq)
|
||||
{
|
||||
/* In some cases, the event queue g_eventq_dflt is already
|
||||
deleted when this callback is called raising an issue ! */
|
||||
if(co->evq->q)
|
||||
ble_npl_eventq_put(co->evq, &co->ev);
|
||||
if(co->evq) {
|
||||
ble_npl_eventq_put(co->evq, &co->ev);
|
||||
} else {
|
||||
co->ev.fn(&co->ev);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user