Skip to content

Commit

Permalink
Update 02_SIGNALduino_calcRSSI.t (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
HomeAutoUser authored Sep 1, 2021
1 parent a07524a commit ed33e93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/FHEM/00_SIGNALduino/02_SIGNALduino_calcRSSI.t
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ InternalTimer(time()+1, sub {
note($rmsg);
my %signal_parts=SIGNALduino_Split_Message($rmsg,$targetHash->{NAME});
my $rssi=$signal_parts{rssi};
my $rssiStr;
plan(2);

my ($rssi,$rssiStr)=SIGNALduino_calcRSSI($rssi);
($rssi,$rssiStr)=SIGNALduino_calcRSSI($rssi);
is($rssi,-36.5,'check return value -36.5 for input '.$signal_parts{rssi});
is($rssiStr,'RSSI = -36.5','check return string RSSI = -36.5 for input '.$signal_parts{rssi});
};
Expand Down

0 comments on commit ed33e93

Please sign in to comment.