comment clean-up (cosmetic)

This commit is contained in:
Frank 2023-12-14 13:53:56 +01:00 committed by GitHub
parent dbe8554724
commit d6735bed4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,13 +171,12 @@ void handleAnalog(uint8_t b)
// remove noise & reduce frequency of UI updates // remove noise & reduce frequency of UI updates
if (abs(int(aRead) - int(oldRead[b])) <= POT_SENSITIVITY) return; // no significant change in reading if (abs(int(aRead) - int(oldRead[b])) <= POT_SENSITIVITY) return; // no significant change in reading
// Un-Comment the next lines if you still see flickering related to potentiometer // Un-comment the next lines if you still see flickering related to potentiometer
// This waits until strip finishes updating (why: strip was not updating at the start of handleButton() but may have started during analogRead()?) // This waits until strip finishes updating (why: strip was not updating at the start of handleButton() but may have started during analogRead()?)
//unsigned long wait_started = millis(); //unsigned long wait_started = millis();
//while(strip.isUpdating() && (millis() - wait_started < STRIP_WAIT_TIME)) { //while(strip.isUpdating() && (millis() - wait_started < STRIP_WAIT_TIME)) {
// delay(1); // delay(1);
//} //}
//if (strip.isUpdating()) return; // give up
oldRead[b] = aRead; oldRead[b] = aRead;