IAR出错 错在哪里了?
Initillumination();if(illumination==1){//人体红外判断Initbodyinfrared();if(bodyinfrared==1)...
Initillumination();
if(illumination ==1)
{
//人体红外判断
Initbodyinfrared();
if(bodyinfrared==1)
{
while(1)
{
Initrelay();
relay=1;
}
}
else
{
while(1)
{
Initrelay();
relay=0;
}
}
}
else
{
return 0;
}
Error[Pe018]: expected a ")"
Error[Pe018]: expected a ")"
Error[Pe029]: expected an expression
Error[Pe029]: expected an expression Error[Pe118]: a void function may not return a value 180
Warning[Pe177]: variable "ucTemp" was declared but never referenced C:\Users\he.lin\Desktop\17.温度传感器DS18B20\DS18B20\Source\main.c 111
Error while running C/C++ Compiler 展开
if(illumination ==1)
{
//人体红外判断
Initbodyinfrared();
if(bodyinfrared==1)
{
while(1)
{
Initrelay();
relay=1;
}
}
else
{
while(1)
{
Initrelay();
relay=0;
}
}
}
else
{
return 0;
}
Error[Pe018]: expected a ")"
Error[Pe018]: expected a ")"
Error[Pe029]: expected an expression
Error[Pe029]: expected an expression Error[Pe118]: a void function may not return a value 180
Warning[Pe177]: variable "ucTemp" was declared but never referenced C:\Users\he.lin\Desktop\17.温度传感器DS18B20\DS18B20\Source\main.c 111
Error while running C/C++ Compiler 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询