From b8abc8300c8390bab98aa673fe8470e571c4b92a Mon Sep 17 00:00:00 2001 From: James Turton Date: Wed, 4 Nov 2020 11:02:34 +0100 Subject: [PATCH] Allow to be between 1 and 50. --- tasmota/xdrv_04_light.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index 04c051d8b..17cc46e17 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -2910,21 +2910,21 @@ void CmndDimmerRange(void) void CmndDimmerStep(void) { // DimmerStep - Show current dimmer step as used by Dimmer +/- - // DimmerStep - Set dimmer step + // DimmerStep 1..50 - Set dimmer step if (XdrvMailbox.data_len > 0) { uint32_t parm[1]; parm[0] = Settings.dimmer_step; ParseParameters(1, parm); if (parm[0] < 1) { Settings.dimmer_step = 1; - } else if (parm[0] > 10) { - Settings.dimmer_step = 10; + } else if (parm[0] > 50) { + Settings.dimmer_step = 50; } else { Settings.dimmer_step = parm[0]; } } Response_P(PSTR("{\"" D_CMND_DIMMER_STEP "\":%d}"), Settings.dimmer_step); - +} void CmndLedTable(void) {