Selaa lähdekoodia

added comment

regarding set point initial state forcing
Etienne Landon 7 vuotta sitten
vanhempi
commit
295dda0404
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      I_Mihalache_AudioPlayer.ino

+ 1 - 1
I_Mihalache_AudioPlayer.ino

@@ -348,7 +348,7 @@ void setup() {
   setPoint.begin(threshold, hysteresis);
   setPoint.attach(RISING_EDGE, Presence);
   setPoint.attach(FALLING_EDGE, Absence);
-  setPoint.update(0);
+  setPoint.update(0); // force no presence state at startup
 }
 
 ///////////////////////////////////////////////////////////////////