From 4ea204589484919e8102f13677ea66ff1738211d Mon Sep 17 00:00:00 2001 From: xiaojiazhu Date: Tue, 7 Nov 2023 15:52:10 +0800 Subject: [PATCH] Fixed bluetooth status show bug. --- .../UIFlowLVGL/UIFlowPhoto/UIFlowPhotoEventCallback.c | 1 + code/lib/source/sifar/code/source/common/sf_common.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowPhoto/UIFlowPhotoEventCallback.c b/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowPhoto/UIFlowPhotoEventCallback.c index 00c9a80ee..fedad21bc 100755 --- a/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowPhoto/UIFlowPhotoEventCallback.c +++ b/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowPhoto/UIFlowPhotoEventCallback.c @@ -520,6 +520,7 @@ static void update_bluetooth(void) // SF_BLE_BUTT, const int EMPTY_IMAGE = 0; SF_BLE_STATUS_E status = sf_get_ble_status(); + // printf(" ============ sf_get_ble_status = %d\n", status); lv_plugin_res_id res[] = { EMPTY_IMAGE, LV_PLUGIN_IMG_ID_SF_BLUETOOTH_UNSUPPORT, diff --git a/code/lib/source/sifar/code/source/common/sf_common.c b/code/lib/source/sifar/code/source/common/sf_common.c index 2483d3eeb..5743db840 100755 --- a/code/lib/source/sifar/code/source/common/sf_common.c +++ b/code/lib/source/sifar/code/source/common/sf_common.c @@ -95,7 +95,7 @@ static pthread_mutex_t Param_mutexLock; static int shared_condition = 1; static SINT32 WifiSocket = 0; static UINT8 UiparaFlag = 0; -static SF_BLE_STATUS_E BleStatus = SF_BLE_BUTT; +static SF_BLE_STATUS_E BleStatus = SF_BLE_OK; static SF_THREAD_S UpgradeTskParam = {