I have a weird....bug I think.
while ((off1 != 1) && (off2 != 1) && (off3 != 1))
The code above doesn't run until all "off"s are 1. As soon as one of them becomes 1, the loop breaks.
while (/*(off1 != 1) && (off2 != 1) &&*/ (off3 != 1))
If I do this (in the current itteration, I know that off3 is the slowest, but that is not always the case), then the loop goes to it's end.
Any combination of 2 or all 3 exits as soon as any one off gets the value 1.
Something similar happens with the following code
if (inter == 3 && dec1 == 0 && pas == 100)
If any 2 of the 3 conditions are met, it enters the statement. I know this because the if toggles an led and "pas == 7" and "pass == 100" both toggle at the same intervals.
Is this a bug? Or am I doing something wrong?
Thanks in advance.