瀏覽代碼

added comment

regarding set point initial state forcing
Etienne Landon 7 年之前
父節點
當前提交
295dda0404
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 }
 
 ///////////////////////////////////////////////////////////////////