34_ESPEasy.pm: removed trailing white spaces

git-svn-id: https://svn.fhem.de/fhem/trunk@14415 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
dev0
2017-05-30 10:54:48 +00:00
parent 722ef3cc41
commit 95d43fceb4

View File

@@ -440,7 +440,6 @@ sub ESPEasy_Set($$@)
"parameter(s)\n"."Usage: 'set $name $ESPEasy_setCmdsUsage{$cmd}'";
}
#Lights Plugin
if (defined AttrVal($name,"mapLightCmds",undef) && $cmd =~ m/^(ct|pct|rgb|on|off|toggle)$/i) {
unshift @params, $cmd;
@@ -1383,8 +1382,7 @@ sub ESPEasy_httpReqParse($$$)
# 10 = SENSOR_TYPE_SWITCH
my $vType = (defined $res->{plugin} && $res->{plugin} eq "1") ? "10" : "0";
if (defined $res->{plugin} && $res->{plugin} eq "123") {
# Lights plugin
# Log 1, Dumper $res;
# Lights plugin (eq 123)
foreach (keys %{ $res }) {
push @values, "r||$_||".$res->{$_}."||".$vType
if $res->{$_} ne "" && $_ ne "plugin";
@@ -1528,7 +1526,6 @@ sub ESPEasy_resetTimer($;$)
$sig = "" if !$sig;
if ($init_done == 1) {
#Log3 $name, 5, "$type $name: RemoveInternalTimer ESPEasy_statusRequest";
RemoveInternalTimer($hash, "ESPEasy_statusRequest");
}
@@ -1889,12 +1886,10 @@ sub ESPEasy_setCT($$@)
my $wwcwMaxBri = AttrVal($name,"wwcwMaxBri",0);
my ($fww,$fcw) = ESPEasy_ct2wwcw($ct, $ctWW, $ctCW, $wwcwMaxBri, $ctWW_lim, $ctCW_lim);
#my ($fww,$fcw) = ESPEasy_ct2wwcw($ct, $ctWW, $ctCW);
ESPEasy_Set($hash, $name, "pwm", ($gww, int $pct*10.23*$fww));
ESPEasy_Set($hash, $name, "pwm", ($gcw, int $pct*10.23*$fcw));
return undef;
}
@@ -2074,8 +2069,7 @@ sub ESPEasy_urlEncodeDisplayText($$@)
# collect all texts parameters
for (my $i=$pp-1; $i<$c; $i++) {
$params[$i] =~ s/,/./g; # comma is http url parameter splitter
#$params[$i] =~ s/[\x00-\x1F\x7F-\xFF]//g; # remove non-printable chrs
push( @t, $params[$i] )
push @t, $params[$i];
}
my $text = join(" ", @t);