to try and keep my project tidy I have several C source files
variables are declared in one and used in the others
all fine and dandy,
one.c const uint8 BusyPin=14;
two.c extern uint8 BusyPin;
what do you think the value of BusyPin is in one.c?
what do you think the value of BusyPin is in two.c?
I know what I expected
but I got 14 in one.c
and 0 in two.c
no errors reported, but the software was as confused as hell!
what do the committee think?
b) stupid programmer should have known better
the fix, as I now know is
two.c extern const uint8 BusyPin;