Quote:
Originally Posted by Ianuser
Code:
void Default_Routine(void)
{
int count = 0;
int now;
int last;
now = last;
rc_dig_in04 = now;
|
Does this bug anyone else? I think that the line that says "rc_dig_in04 = now;" should say "now = rc_dig_in04;", and the line that says "now = last;" should say "last = now;". Normally, you don't set the sensor value variable.