-
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
Bugfix 898 #899
Bugfix 898 #899
Conversation
Codecov Report
@@ Coverage Diff @@
## master #899 +/- ##
==========================================
+ Coverage 54.14% 54.17% +0.03%
==========================================
Files 60 61 +1
Lines 7933 7943 +10
Branches 1277 1279 +2
==========================================
+ Hits 4295 4303 +8
Misses 2846 2846
- Partials 792 794 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Pull Request Test Coverage Report for Build 3833
💛 - Coveralls |
cd85be5
to
3f4004e
Compare
bugfix: get ccreg command caused stacktrace #898
Diese Änderung funktioniert bei mir nicht:
Bei "get sduinoIP ccreg 13" erhalte ich:
Vorher hat es funktioniert. Ich verwende Version 3.5.0 aus dem Master. So funktioniert es bei mir wieder:
|
FHEM/00_SIGNALduino.pm
Outdated
my ($hash, @a) = @_; | ||
return 'not enough number of arguments' if $#a < 1; | ||
return 'Wrong command provided' if $a[0] != 'ccreg'; |
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.
Das erzeugt eine Warnung - besser so:
return 'Wrong command provided' if $a[0] ne 'ccreg';
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.
Ja da hast Du recht
fixed compare operator
Was genau möchtest Du mir damit mitteilen? |
Der Unterschied besteht darin: |
Kannst Du die Zeilennummer referenzieren? |
FHEM/00_SIGNALduino.pm
Outdated
my $name=$hash->{NAME}; | ||
if (exists($cc1101_register{uc($_[2])}) || $_[2] =~ /^99$/ ) { | ||
if (exists($cc1101_register{uc($a[1])}) || $a[1] =~ /^99$/ ) { |
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.
Die hier meinte ich. Aber sorry, ich habe mich vertan. Ich hatte bei mir nur die 2 in eine 1 geändert. Hat sich erledigt.
Bugfix
#898
Sub checks if parameters are provided
no