for(t=0;t<lsens_times;t++)
{
temp_val+=Get_Adc3(ADC_Channel_5);
delay_ms(5);
}
temp_val=temp_val/lsens_times;
if(temp_val>4000)temp_val=4000;
return (u8)(100-(temp_val/40));
}
Build target 'ITEMP'
compiling lsens.c...
..\HARDWARE\LSENS\lsens.c(23): error: #29: expected an expression
for(t=0;t<lsens_times;t++)
..\HARDWARE\LSENS\lsens.c: 0 warnings, 1 error
&quot;..\OBJ\ITEMP.axf&quot; - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
改了好久 expected an expression还是没有解决,求大神! |