From 65aa20563132f777793e29d7bfdb697d4d7e075b Mon Sep 17 00:00:00 2001 From: blakadder Date: Tue, 14 May 2019 23:14:08 +0200 Subject: [PATCH] Updated Button usage (markdown) --- Button-usage.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Button-usage.md b/Button-usage.md index 0f4452e9..38d57401 100644 --- a/Button-usage.md +++ b/Button-usage.md @@ -23,12 +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. -### **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. +### **Long press** +There are two separate functions associated with a button long press based on how long it is held: +1. When held continuously for 40 seconds (Configurable with [SetOption32](commands#setoption32), value is 10x the configured hold time) Tasmota will reset to firmware defaults and restart. +2. If enabled, button pressed for 4 seconds creates a HOLD action (Configurable with [SetOption32](commands#setoption32)). Check [table below](#changing-default-button-functionality)on how to enable this function. - >:warning: When a button is configured with a [Switchmode](commands#switchmode) that keeps it as ON while depressed it activates this function. + >:warning: When a button is configured with a [Switchmode](commands#switchmode) that keeps it as ON while depressed it activates the reset to firmware defaults function. Change the button to switch or change switchmode to avoid it. ## [ButtonTopic](Commands#ButtonTopic)