-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
14_SD_Keeloq.pm - fixes #643
14_SD_Keeloq.pm - fixes #643
Conversation
HomeAutoUser
commented
Sep 1, 2019
•
edited by sidey79
Loading
edited by sidey79
- Please check if the PR fulfills these requirements
- Tests for the changes have been added / modified (needed for for bug fixes / features)
- commandref has been added / updated (needed for bug fixes / features)
- CHANGED has been updated (needed for bug fixes / features)
- What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
- fix, feature
- What is the current behavior? (You can also link to an open issue here)
- shade function not work
- superfluous readings are always retained
- What is the new behavior (if this is a feature change)?
- added more information to JaroLift buttons
- fix Call SD_Keeloq_binsplit_JaroLift only if verbose >=5 #640 Call SD_Keeloq_binsplit_JaroLift only if verbose >=5
- fix shade function Shade ohne Funktion fhem/SD_Keeloq#9
- deleting superfluous readings when channels are being downsized ChannelAttribute Check fhem/SD_Keeloq#17
- added more information to JaroLift buttons - fix RFD-FHEM#640 Call SD_Keeloq_binsplit_JaroLift only if verbose >=5 - fix shade function fhem/SD_Keeloq#9
FHEM/14_SD_Keeloq.pm
Outdated
my $Channels = AttrVal($name, "Channels", ""); | ||
return "ERROR: you can use Channels = $attrValue only with defined attribut addGroups!" if ($attrValue == 0 && $addGroups eq ""); | ||
if ($Channels > $attrValue) { | ||
foreach my $d (sort keys %{$hash->{READINGS}}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ist das sortieren notwendig?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In der Sache nicht unbedingt. Es wäre ein klassischer Copy&Paste wie dies da hinkam :-)
Würde das zusätzliche sort so viel ausmachen an Ressourcen? Ja es wäre unötige aber rein informell mal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Es verbraucht halt CPU Ressourcen weil die komplette Liste sortiert wird.
Wenn man es nicht braucht, sollte man es weglassen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Es ist doch schon geschehen :-) Somit ist nur das benötigte im Code.
- remove unnecessary sort function RFD-FHEM#643 (review)
Pull Request Test Coverage Report for Build 1721
💛 - Coveralls |