From b5448535b2ee6cb302cead123546589f90ca7111 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Thu, 24 Nov 2022 10:51:58 +0100 Subject: [PATCH] Update dimmer loockup table --- tasmota/tasmota_xdrv_driver/xdrv_04_light_utils.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_04_light_utils.ino b/tasmota/tasmota_xdrv_driver/xdrv_04_light_utils.ino index ebe69a08f..1a4412962 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_04_light_utils.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_04_light_utils.ino @@ -33,13 +33,16 @@ typedef struct gamma_table_t { const gamma_table_t ac_dimmer_table[] = { // don't put in PROGMEM for performance reasons { 0, 0 }, + { 1, 64 }, { 5, 144 }, { 10, 205 }, { 50, 500 }, { 90, 795 }, { 95, 866 }, + { 99, 936 }, { 100, 1000 }, { 0xFFFF, 0xFFFF } // fail-safe if out of range + { 0xFFFF, 0xFFFF } // fail-safe if out of range }; const gamma_table_t gamma_table[] = { // don't put in PROGMEM for performance reasons