修改了ticks值范围,防止溢出
This commit is contained in:
parent
73f221931d
commit
926187cd17
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue