From 1a887a20023ffd14329d429a1719897111bba067 Mon Sep 17 00:00:00 2001 From: jhchun Date: Wed, 27 May 2026 14:47:01 +0900 Subject: [PATCH] =?UTF-8?q?Piezo=20=EC=B8=A1=EC=A0=95=20=EC=A4=91=EC=97=90?= =?UTF-8?q?=EB=8A=94=20=EB=B0=B0=ED=84=B0=EB=A6=AC/=EC=98=A8=EB=8F=84=20?= =?UTF-8?q?=EC=A0=80=EC=A0=84=EC=95=95=20=EC=B2=B4=ED=81=AC=EA=B0=80=20?= =?UTF-8?q?=EB=8F=99=EC=9E=91=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EA=B0=80=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - battery_loop()에서 maa_async_is_busy()면 return - safety_check_complete()에서도 MAA 중이면 dr_piezo_power_off() 안 하고 return --- .../measurement/battery/battery_saadc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/project/ble_peripheral/ble_app_bladder_patch/measurement/battery/battery_saadc.c b/project/ble_peripheral/ble_app_bladder_patch/measurement/battery/battery_saadc.c index 8417ec8..2d45aa5 100644 --- a/project/ble_peripheral/ble_app_bladder_patch/measurement/battery/battery_saadc.c +++ b/project/ble_peripheral/ble_app_bladder_patch/measurement/battery/battery_saadc.c @@ -90,6 +90,7 @@ extern bool go_batt; extern bool motion_raw_data_enabled; extern bool ble_got_new_data; extern bool motion_data_once; +extern bool maa_async_is_busy(void); /*============================================================================== * safety_check_complete - Called by tmp235 handler after temperature measurement @@ -102,6 +103,11 @@ void safety_check_complete(float temp_c) //DBG_PRINTF("[SAFETY] Batt=%d mV, Temp=%d.%d C\r\n", // (int)safety_batt_mv, (int)temp_c, ((int)(temp_c * 10)) % 10); + if (maa_async_is_busy()) + { + return; + } + /* Battery check */ if (safety_batt_mv <= LOW_BATTERY_VOLTAGE) { @@ -268,6 +274,10 @@ void battery_loop(void * p_context) { return; } + if (maa_async_is_busy()) + { + return; + } low_battery_check = true; battery_level_meas();