µTasker Forum
µTasker Forum => µTasker general => Topic started by: thamanjd on February 13, 2008, 08:08:33 AM
-
after enabling the network indicator option in NE64 version of the project, the complier compained about this line:
#define LINK_DOWN_LEDS() PTL |= (LNKLED | ACTLED); \
PTL = ~(COLLED | SPDLED | DUPLED);
i assume the backslash somehow is supposed to indicated that the second line shoulds also be included in the define but my CW doesnt like it. Anybody know a way to make it work?
-
Hi
Yes, the \ indicates that the following line should be considered to be an extension of the first. This is used in a number of defines to avoid lines becoming too long.
For a fast solution simply declare the line as follows:
#define LINK_DOWN_LEDS() PTL |= (LNKLED | ACTLED); PTL = ~(COLLED | SPDLED | DUPLED);
If it still causes a problem it is not the \ but rather something else. But this will certainly remove the first possibility. At the moment I don't see why CW would have a problem with this so please tell us if it really solves it.
Regards
Mark
-
Ive now tested this in a second project and it seems ok. Not sure what i was doing that caused the error the first time.