v0.9.337b

This commit is contained in:
e2002
2024-11-27 12:43:44 +03:00
parent 778dd1e847
commit 4f1582b7d6
193 changed files with 68179 additions and 593 deletions

View File

@@ -195,7 +195,7 @@ int OneButton::getNumberClicks(void)
*/
void OneButton::tick(void)
{
if (_pin >= 0) {
if (_pin >= 0 && _pin < 255) {
tick(digitalRead(_pin) == _buttonPressed);
}
}