Of course, if you had provided BOTH version of the ACTUAL code, someone might be able to make an informed suggestion. What we can say absolutely, positively, 100% for certain is that there will be NO discernable difference in ANY aspect of the programs execution using either of the two expressions you describe, if properly coded. There is something ELSE wrong with your code that is causing the visible difference you cite.
isn't this ALWAYS going to be true? It seems to me that count is ALWAYS either greater than 80 or less than 100, and sometimes both.
Isn't this different from (count == 90) ?
I thought about this, that (count == 90), isn't always true. But, I tested the accuracy of the pro micro board and it's very accurate.
And so (count == 90) should occur every time it matches this condition.
But the other condition is different! It's almost double the speed, so I don't think it's because (count == 90) occurs less frequent than (count < 100)||(count > 80).
RayLivingston:
Of course, if you had provided BOTH version of the ACTUAL code, someone might be able to make an informed suggestion. What we can say absolutely, positively, 100% for certain is that there will be NO discernable difference in ANY aspect of the programs execution using either of the two expressions you describe, if properly coded. There is something ELSE wrong with your code that is causing the visible difference you cite.
Regards,
Ray L.
The code in the original post is the actual code, you just have to change the if argument in the while loop.
I should edit the post and comment where you change the condition.
I don't know what is wrong with my code as it's very simple and there's nothing else to change in the code except the if arguments.