V1.9
This commit is contained in:
@@ -111,7 +111,7 @@ void ADC_Function_Init(void)
|
||||
*/
|
||||
u16 Get_ConversionVal1(s16 val)
|
||||
{
|
||||
if((val + Calibrattion_Val1) < 0)
|
||||
if((val + Calibrattion_Val1) < 0|| val==0)
|
||||
return 0;
|
||||
if((Calibrattion_Val1 + val) > 4095 || val == 4095)
|
||||
return 4095;
|
||||
|
||||
Reference in New Issue
Block a user