From 68133b66f4f2536b27ef879a4f8604a90895b545 Mon Sep 17 00:00:00 2001 From: Christian Iversen Date: Sat, 11 Oct 2014 18:45:06 +0200 Subject: [PATCH] * Whitespace fix --- Bounce2/Bounce2.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Bounce2/Bounce2.cpp b/Bounce2/Bounce2.cpp index c20abd8..cc9afff 100644 --- a/Bounce2/Bounce2.cpp +++ b/Bounce2/Bounce2.cpp @@ -64,14 +64,14 @@ bool Bounce::update() state ^= _BV(UNSTABLE_STATE); } else if ( millis() - previous_millis >= interval_millis ) { - // Rendu ici, la lecture est stable - // Est-ce que la lecture est différente de l'etat emmagasine de l'interrupteur? - if ((bool)(state & _BV(DEBOUNCED_STATE)) != currentState) { - previous_millis = millis(); - state ^= _BV(DEBOUNCED_STATE); - state |= _BV(STATE_CHANGED); + // Rendu ici, la lecture est stable + // Est-ce que la lecture est différente de l'etat emmagasine de l'interrupteur? + if ((bool)(state & _BV(DEBOUNCED_STATE)) != currentState) { + previous_millis = millis(); + state ^= _BV(DEBOUNCED_STATE); + state |= _BV(STATE_CHANGED); + } } - } return state & _BV(STATE_CHANGED); #endif