C
cerr
Hi There,
In my code i would like to use the following:
#ifdef PACE
unsigned char pin = atoi(app_tran[direction])+4; // we need pins 5-8
for PACE, direction 0-3
#else
unsigned char pin = atoi(app_tran[direction]); // we generically
need pins 1-4 for direction 0-3
#endif
I'm compiling this using gcc but if i define PACE or if I don't, I
always get
"'pin' undeclared (first use in this function)' at a later access
point, why that???
This is puzzling me...
Thanks,
Ron
In my code i would like to use the following:
#ifdef PACE
unsigned char pin = atoi(app_tran[direction])+4; // we need pins 5-8
for PACE, direction 0-3
#else
unsigned char pin = atoi(app_tran[direction]); // we generically
need pins 1-4 for direction 0-3
#endif
I'm compiling this using gcc but if i define PACE or if I don't, I
always get
"'pin' undeclared (first use in this function)' at a later access
point, why that???
This is puzzling me...
Thanks,
Ron