From 01d51d4309420aba61288216b5b50b643c41f4c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=5F666?= <13089258+pony-six-hundred-and-sixty-six@user.noreply.gitee.com> Date: Tue, 24 Jun 2025 09:27:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/main.c b/applications/main.c index ec6c7d5..66cf6a7 100644 --- a/applications/main.c +++ b/applications/main.c @@ -2,7 +2,7 @@ * @Author: mbw * @Date: 2024-10-23 17:14:16 * @LastEditors: mbw && 1600520629@qq.com - * @LastEditTime: 2025-06-24 08:57:50 + * @LastEditTime: 2025-06-24 08:58:44 * @FilePath: \ble_bjq_ch303rct6_ml307\applications\main.c * @Descrt_thread_ * @@ -184,7 +184,7 @@ uint16_t Get_Stable_Reading(uint8_t cnt, uint32_t timeout_ms) uint16_t diff = abs(current - last); // 差值 - if (diff < STABLE_THRESHOLD) + if (diff <= STABLE_THRESHOLD) { gas_buf[stable_count] = current; stable_count++;