break;
}
- if(count_num==3 || connect_state)
+ if(count_num==9 || connect_state)
{
if( BluetoothServiceOptionsView::GetInstance())
BluetoothServiceOptionsView::GetInstance()->show_connecting_view(false);
}
MG_TEST_timer = osTimerNew((osTimerFunc_t)connectTimerCallBack, osTimerPeriodic, NULL, NULL);
- tick =1500;
+ tick =500;
retTimer = osTimerStart(MG_TEST_timer, tick);
if (retTimer != osOK && MG_TEST_timer != NULL) {
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"StartCallTimer osTimerStart failed, ret = %lx!!", retTimer);
#include "classicbluetooth/include/BluetoothServiceOptionsView.h"
#include "player/include/PlayersView.h"
#include "player/include/PlayersModel.h"
+#include "PhoneService.h"
+#include "phoneservice/include/PhoneService.h"
+#include "BluetoothModel.h"
+
extern "C" {
#include "custom_runtime.h"
btConnectStatus = status;
if (PullUpDownView::GetInstance() != nullptr)
{
- PullUpDownView::GetInstance()->UpdateBlueToothStatus(status);
+ if(!uapi_a2dp_snk_get_device_connect_state()&& !uapi_hfp_connect_state())
+ PullUpDownView::GetInstance()->UpdateBlueToothStatus(false);
+ else
+ PullUpDownView::GetInstance()->UpdateBlueToothStatus(true);
}
if (BluetoothServiceOptionsView::GetInstance())
{