mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-01 06:57:43 +00:00
PS_16_DZ: only update brightness if it actually changed
This commit is contained in:
parent
be358b3314
commit
7a2c5154aa
@ -165,7 +165,7 @@ void PS16DZSerialInput(void)
|
||||
ps16dz_bright = atoi(token3);
|
||||
snprintf_P(log_data, sizeof(log_data), PSTR("PSZ: brightness received: %d"), ps16dz_bright);
|
||||
AddLog(LOG_LEVEL_DEBUG);
|
||||
if(power && ps16dz_bright > 0) {
|
||||
if(power && ps16dz_bright > 0 && ps16dz_bright != Settings.light_dimmer) {
|
||||
|
||||
snprintf_P(scmnd, sizeof(scmnd), PSTR(D_CMND_DIMMER " %d"), ps16dz_bright );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user