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:
+1
-1
@@ -59,7 +59,7 @@ bool Bounce::update()
|
||||
if(state & _BV(FIRSTUPDATE))
|
||||
{
|
||||
attach(pin);
|
||||
state &= _BV(FIRSTUPDATE);
|
||||
state &= ~_BV(FIRSTUPDATE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user