From d019be44ca18c305b76c4289b0bf14975bc7fd51 Mon Sep 17 00:00:00 2001 From: Michael Ingraham <34340210+meingraham@users.noreply.github.com> Date: Tue, 14 May 2019 14:53:26 -0400 Subject: [PATCH] Updated Button usage (markdown) --- Button-usage.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Button-usage.md b/Button-usage.md index e22c1346..0f4452e9 100644 --- a/Button-usage.md +++ b/Button-usage.md @@ -23,9 +23,12 @@ Restarts the device. ### 7 short presses Start OTA update of firmware using [OtaUrl](commands#otaurl). The green LED is lit during the update. -### **Pressing the button for over 40 seconds** -Resets the device to firmware defaults and restarts it. ->:warning: When a button is configured with a [Switchmode](commands#switchmode) that keeps it as ON while depressed it activates this function. +### **Button long press** +Tasmota interprets a button long press according to the setting of [SetOption32](Commands#setoption32) _(default = 40)_. There are two separate functions associated with a long press based on the duration: +- A HOLD action occurs when when the button is pressed for SetOption32 x 0.1 seconds and released. +- When the button is held continuously and released after SetOption32 x 1 seconds, Tasmota will reset the device back to firmware defaults and restarts it. + + >:warning: When a button is configured with a [Switchmode](commands#switchmode) that keeps it as ON while depressed it activates this function. ## [ButtonTopic](Commands#ButtonTopic)