I need to know why this statement will compile
#byte PLC_AN1=PLC_RELE_START+1+PLC_ANC
and this
#byte PLC_AN1=PLC_RELE_START+(1+PLC_ANC)
return the following error:
Expression must be a constant or simple variable
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Wed Dec 27, 2006 12:44 pm
It looks like the CCS parser gives an error if it sees any parentheses
in a #byte statement. For example, this fails to compile:
Code:
#byte PortA = (5)
The work-around is just to avoid using parentheses.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum