Jelajahi Sumber

added comment

regarding set point initial state forcing
Etienne Landon 7 tahun lalu
induk
melakukan
295dda0404
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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
 }
 
 ///////////////////////////////////////////////////////////////////