Fixed bug with update constantly calling attach(pin)

This caused people to use retrigger() to have it constantly return a 1
when using active low buttons.
This commit is contained in:
Albert Phan
2017-01-07 13:58:41 -08:00
parent c5e009cc0d
commit 2977f97058
+1 -1
View File
@@ -59,7 +59,7 @@ bool Bounce::update()
if(state & _BV(FIRSTUPDATE))
{
attach(pin);
state &= _BV(FIRSTUPDATE);
state &= ~_BV(FIRSTUPDATE);
}
else
{