From 83da5e2a9253b3027b77b3aae8a7b263e6aac13c Mon Sep 17 00:00:00 2001 From: helloyifa Date: Fri, 11 Apr 2025 14:45:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8E=A5=E5=85=A5=E5=85=85=E7=94=B5=20?= =?UTF-8?q?=E6=88=96=E8=80=85=E6=94=BE=E5=9B=9E=E5=85=85=E7=94=B5=E4=BB=93?= =?UTF-8?q?=E6=97=B6=20=E5=85=B3=E9=97=AD=E8=93=9D=E7=89=99=E5=B9=BF?= =?UTF-8?q?=E6=92=AD,=20=202.=E5=B9=BF=E6=92=AD=E6=95=B0=E6=8D=AE=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=94=B5=E9=87=8F0-100%=20=E5=88=8610=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fw-AC63_BT_SDK/apps/spp_and_le/app_temperature.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fw-AC63_BT_SDK/apps/spp_and_le/app_temperature.c b/fw-AC63_BT_SDK/apps/spp_and_le/app_temperature.c index c5eacb9..3c9fad8 100644 --- a/fw-AC63_BT_SDK/apps/spp_and_le/app_temperature.c +++ b/fw-AC63_BT_SDK/apps/spp_and_le/app_temperature.c @@ -357,6 +357,7 @@ static uint8_t reversal(uint8_t data) ff_temp_data[4] = (ntc >> 8) & 0xFF; ff_temp_data[5] = (ntc) & 0xFF; //batt + battery = get_cur_battery_level() *10; ff_temp_data[6] = battery & 0xFF; trans_client_adv_data_set_ff(ff_temp_data,sizeof(ff_temp_data)); gpio_direction_output(IO_PORTB_05, 0); @@ -428,6 +429,8 @@ void temperature_charge_state(int state){ temperature_work_led(0); delay_ms_by_timer0(150); } + //接入充电关闭蓝牙广播 + ble_op_adv_enable(0); //spple_power_event_to_user(POWER_EVENT_POWER_SOFTOFF); //printf("!!!!!!!!!!!!!! CHARGING POWER OFF!!!!!!!!!!!!!!!!\n"); //printf("BLE_TEMPERATURE_CHARGE_STATE_CHARGING 2\n"); @@ -445,6 +448,9 @@ void temperature_charge_state(int state){ //temperature_charge_led(0); temperature_work_led(1); sys_s_hi_timerout_add(NULL,temperature_poweron_led_timeout,2000); + + //拔出充电打开蓝牙广播 + ble_op_adv_enable(1); break; //低电 case BLE_TEMPERATURE_CHARGE_STATE_LOWPOWER: