From 7e5b611c2344bf9ade2f446e32dc280a6887ded7 Mon Sep 17 00:00:00 2001 From: biver Date: Fri, 3 Dec 2021 09:52:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B2=D1=81=D0=B5=D1=85=20?= =?UTF-8?q?=D0=BF=D0=B8=D0=BD=D0=BE=D0=B2=20=D0=BD=D0=B0=20ESP32=20=D0=B2?= =?UTF-8?q?=20=D0=BA=D0=B0=D1=87=D0=B5=D1=81=D1=82=D0=B2=D0=B5=20=D0=BA?= =?UTF-8?q?=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20=D0=BF=D1=83=D1=82=D0=B5=D0=BC?= =?UTF-8?q?=20=D1=8F=D0=B2=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=83=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=80=D0=B5=D0=B6=D0=B8=D0=BC?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BE=D1=80=D1=82=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/items/ButtonInClass.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/items/ButtonInClass.h b/include/items/ButtonInClass.h index 8adab9cc..e9719874 100644 --- a/include/items/ButtonInClass.h +++ b/include/items/ButtonInClass.h @@ -20,7 +20,7 @@ class ButtonInClass : public LineParsing { void init() { if (_pin != "") { int number = numberEntering++; - buttons[number].attach(_pin.toInt()); + buttons[number].attach(_pin.toInt(), INPUT); buttons[number].interval(_db.toInt()); but[number] = true; jsonWriteStr(configOptionJson, "switch_num_" + String(number), _key);