From 3c60f60f54468811d3949096f228e647392dd7db Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期四, 15 六月 2023 09:04:00 +0800 Subject: [PATCH] V1.65 修改小组到2 --- Src/OnChipDevices/ADC.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Src/OnChipDevices/ADC.c b/Src/OnChipDevices/ADC.c index 9f9766d..9b34737 100644 --- a/Src/OnChipDevices/ADC.c +++ b/Src/OnChipDevices/ADC.c @@ -48,7 +48,7 @@ MX_ADC_DeInit(); //temp_voltage = (float)Get_ADC_Value()/621; //(value/4096*3.3*2-3.5)/0.7 verfint_cal = *(__IO uint16_t *)(0X1FF80078); - bat_volt = 3*(float)verfint_cal/adc_val; + bat_volt = 3*(float)verfint_cal/adc_val+0.13; if(bat_volt>=3.0) { if(first) -- Gitblit v1.9.3