From fbe37cc81c0bd9a0350e706aed17d8ca0af89a4d Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Sat, 10 Feb 2024 17:06:46 +0800 Subject: [PATCH] =?utf8?q?=E4=BD=BF=E8=83=BD=E5=85=85=E7=94=B5=E6=A3=80?= =?utf8?q?=E6=B5=8B=E6=B6=88=E6=81=AF=EF=BC=8C=E6=B5=8B=E8=AF=95=E5=8F=AF?= =?utf8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/application/battery/service/battery_service.cpp | 2 +- code/sdk/build/config/target_config/brandy/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/battery/service/battery_service.cpp b/code/sdk/application/battery/service/battery_service.cpp index eebc842bf..8b6da7472 100644 --- a/code/sdk/application/battery/service/battery_service.cpp +++ b/code/sdk/application/battery/service/battery_service.cpp @@ -285,7 +285,7 @@ void ChargerEventPublish(uint16_t topic, uint32_t data) errcode_t charger_plug_event_notify(uint8_t plugged) { - return 0; + // return 0; #ifdef SUPPORT_CHARGER_PLUG_DETECTION_NOTIFICATION if(plugged == 1){ ChargerEventPublish(TOPIC_EVENT_CHARGE_PLUG,1); diff --git a/code/sdk/build/config/target_config/brandy/config.py b/code/sdk/build/config/target_config/brandy/config.py index f3c8bc779..7e5b01abb 100755 --- a/code/sdk/build/config/target_config/brandy/config.py +++ b/code/sdk/build/config/target_config/brandy/config.py @@ -127,7 +127,7 @@ target = { 'ENABLE_FONT_VECTOR_GLOBAL', 'ENABLE_SHAPING', 'TPTYPE_FT6X46', - # 'SUPPORT_CHARGER_PLUG_DETECTION_NOTIFICATION', + 'SUPPORT_CHARGER_PLUG_DETECTION_NOTIFICATION', 'SUPPORT_ALIPAY_SEC' ], 'ram_component': ["algorithm", "dfx_port_brandy", "dfx_update", 'dfx_nv', "osal", "arch_port", "-:testsuite", -- 2.17.1