From f015c790bdc4ade02850beffa9e0be67a3fe2584 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期四, 20 六月 2024 16:28:43 +0800 Subject: [PATCH] V1.70 6.5g,不限小组id --- 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 9b34737..5c3351d 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+0.13; + bat_volt = 3*(float)verfint_cal/adc_val-0.329; if(bat_volt>=3.0) { if(first) -- Gitblit v1.9.3