|
Re: Code for sensor still doesn't work
Ianuser,
While I haven't really taken a detailed look at your code, I believe you want to make all your now/last variables static (static int now; ). As they are written, they will lose their value when the Default_Routine exits as they are only temporary stack variables.
Mike
|