修改了ticks值范围,防止溢出

This commit is contained in:
小马_666 2024-12-01 15:55:39 +08:00
parent 73f221931d
commit 926187cd17
1 changed files with 2 additions and 2 deletions

View File

@ -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: 2024-12-01 14:44:58 * @LastEditTime: 2024-12-01 15:55:01
* @FilePath: \ble_bjq_ch303rct6_ml307\applications\main.c * @FilePath: \ble_bjq_ch303rct6_ml307\applications\main.c
* @Descrt_thread_ * @Descrt_thread_
* *
@ -156,7 +156,7 @@ int main(void)
LED_CTRL(g, "1000,500", -1); LED_CTRL(g, "1000,500", -1);
LED_START(g); LED_START(g);
uint16_t ticks = 0, gas_calibration_voltage; uint32_t ticks = 0, gas_calibration_voltage;
while (1) while (1)
{ {
gas_calibration_voltage = Get_Gas_VoltageInt1000x(); gas_calibration_voltage = Get_Gas_VoltageInt1000x();