就是编译是报了一堆警告,如下:(感觉不影响使用,但想明白这些警告怎么消除)
if(!LowPowerCheck()) //开机检测低电量
{
Induction = Adapt();
if(Induction < 680) //判断是铁门
DACCON1 = Induction/34;
else
DACCON1 = Induction/35;
dodo350ms();
}
提示的错误:
Microchip MPLAB XC8 C Compiler V1.20
Copyright (C) 2013 Microchip Technology Inc.
License type: w
../v1.c:168: warning: (752) conversion to shorter data type
../v1.c:170: warning: (752) conversion to shorter data type
|