瀏覽代碼

fix error in Buttonhandling.ino introduced with last commit

FloKra 1 年之前
父節點
當前提交
bd9ba198eb
共有 3 個文件被更改,包括 2 次插入2 次删除
  1. 二進制
      releases/bin/WiFiThermostat.ino.d1_mini.20221125_v0.6.5.bin
  2. 二進制
      releases/src/WiFiThermostat_0.6.5.zip
  3. 2 2
      src/Buttonhandling.ino

二進制
releases/bin/WiFiThermostat.ino.d1_mini.20221125_v0.6.5.bin


二進制
releases/src/WiFiThermostat_0.6.5.zip


+ 2 - 2
src/Buttonhandling.ino

@@ -2,8 +2,8 @@
 const unsigned int buttonMaxClickTime = 500;
 const unsigned int buttonMaxClickTime_2 = 350;     // actual max time a button may be pressed to get detected as short press/click
 const unsigned int buttonDebounceTime = 50;
-const unsigned int buttonRepeatTime = 50;
-const unsigned int buttonHoldTime = 50;
+const unsigned int buttonRepeatTime = 350;
+const unsigned int buttonHoldTime = 1000;
 const unsigned int buttonRepeatTime_menuButton = 1000;
 
 // Use this function to configure the internal Bounce object to suit you. See the documentation at: https://github.com/thomasfredericks/Bounce2/wiki