This commit is contained in:
parent
e29e8355da
commit
01d51d4309
|
@ -2,7 +2,7 @@
|
||||||
* @Author: mbw
|
* @Author: mbw
|
||||||
* @Date: 2024-10-23 17:14:16
|
* @Date: 2024-10-23 17:14:16
|
||||||
* @LastEditors: mbw && 1600520629@qq.com
|
* @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
|
* @FilePath: \ble_bjq_ch303rct6_ml307\applications\main.c
|
||||||
* @Descrt_thread_
|
* @Descrt_thread_
|
||||||
*
|
*
|
||||||
|
@ -184,7 +184,7 @@ uint16_t Get_Stable_Reading(uint8_t cnt, uint32_t timeout_ms)
|
||||||
|
|
||||||
uint16_t diff = abs(current - last); // 差值
|
uint16_t diff = abs(current - last); // 差值
|
||||||
|
|
||||||
if (diff < STABLE_THRESHOLD)
|
if (diff <= STABLE_THRESHOLD)
|
||||||
{
|
{
|
||||||
gas_buf[stable_count] = current;
|
gas_buf[stable_count] = current;
|
||||||
stable_count++;
|
stable_count++;
|
||||||
|
|
Loading…
Reference in New Issue