diff options
-rwxr-xr-x | main/bte_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/bte_main.c b/main/bte_main.c index 4f63d42..6cf7dfe 100755 --- a/main/bte_main.c +++ b/main/bte_main.c @@ -251,15 +251,15 @@ void bte_main_disable(void) { APPL_TRACE_DEBUG1("%s", __FUNCTION__); - GKI_destroy_task(BTU_TASK); - - GKI_freeze(); - if (bt_hc_if) { bt_hc_if->cleanup(); bt_hc_if->set_power(BT_HC_CHIP_PWR_OFF); } + + GKI_destroy_task(BTU_TASK); + + GKI_freeze(); } /****************************************************************************** |