|
Re: why does aux1 doesn't work?
First of all, it would help if you explained what you wanted the code to do. Secondly, it would help to describe what you've proven works or doesn't work. For example, have you used this code with another switch and it worked correctly? Have verified that p1_sw_aux1 doesn't switch, or do you not really know?
If I had to guess at what the problem is with no other information, I'd say that z (and maybe some of the other variables, depending on the rest of your code) are not declared static.
|