This commit is contained in:
qiyongshuang
2023-12-01 10:33:09 +08:00
parent de6d68c654
commit ec059e0b18
395 changed files with 37947 additions and 28760 deletions
@@ -151,7 +151,7 @@ void TIM2_PWM_In(u16 arr, u16 psc, u16 ccp)
*/
u16 Get_ConversionVal1(s16 val)
{
if((val + Calibrattion_Val1) < 0)
if((val + Calibrattion_Val1) < 0|| val==0)
return 0;
if((Calibrattion_Val1 + val) > 4095)
return 4095;