2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 09:55:38 +00:00

36_Shelly: removed uninitialized

git-svn-id: https://svn.fhem.de/fhem/trunk@28696 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Starkstrombastler 2024-03-22 08:36:42 +00:00
parent 3ae342b49f
commit 120969981d

View File

@ -68,6 +68,7 @@
# 5.20 Bug Fix: suppress status calls for disabled devices # 5.20 Bug Fix: suppress status calls for disabled devices
# 5.21 Bug Fix: Shelly-dimmer: convert dim-command with brightness=0 to an off-command # 5.21 Bug Fix: Shelly-dimmer: convert dim-command with brightness=0 to an off-command
# Bug Fix: Shelly-dimmer, Shelly-bulb: slider for pct starts with 1 # Bug Fix: Shelly-dimmer, Shelly-bulb: slider for pct starts with 1
# 5.21.1 Bug Fix: removed uninitialized $oldtimer
package main; package main;
@ -86,7 +87,7 @@ sub Log($$);
sub Shelly_Set ($@); sub Shelly_Set ($@);
#-- globals on start #-- globals on start
my $version = "5.21 21.03.2024"; my $version = "5.21.1 22.03.2024";
my $defaultINTERVAL = 60; my $defaultINTERVAL = 60;
my $secndIntervalMulti = 4; # Multiplier for 'long update' my $secndIntervalMulti = 4; # Multiplier for 'long update'
@ -1974,9 +1975,9 @@ sub Shelly_Set ($@) {
if( $cmd eq "dim" ){ if( $cmd eq "dim" ){
# #
if( $brightness == 0 ){ if( $brightness == 0 ){
$cmd = "?turn=off$oldtimer"; $cmd = "?turn=off";
}else{ }else{
$cmd = "?brightness=$brightness&turn=on$oldtimer"; $cmd = "?brightness=$brightness&turn=on";
} }
} }
#-- check timer command #-- check timer command