Skip to content

Commit

Permalink
Update 02_SIGNALduino_CheckccConfResponse.t
Browse files Browse the repository at this point in the history
  • Loading branch information
HomeAutoUser committed Nov 3, 2021
1 parent ff77efe commit d4e2e5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/FHEM/00_SIGNALduino/02_SIGNALduino_CheckccConfResponse.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ InternalTimer(time(), sub {
my $target='dummyDuino';
my $targetHash = $defs{$target};

my ($ret)=SIGNALduino_CheckccConfResponse($targetHash,"C0Dn11=10B07157C43023B900070018146C070091");
my ($ret)=SIGNALduino_CheckccConfResponse($targetHash,'C0Dn11=10B07157C43023B900070018146C070091');
is($ret,"Freq: 433.920 MHz, Bandwidth: 325 kHz, rAmpl: 42 dB, sens: 8 dB, DataRate: 5.60 kBaud, Modulation: ASK/OOK","check return message");
is(ReadingsVal($target,"cc1101_config",undef),"Freq: 433.920 MHz, Bandwidth: 325 kHz, rAmpl: 42 dB, sens: 8 dB, DataRate: 5.60 kBaud","check reading cc1101_config value");
is(ReadingsVal($target,"cc1101_config_ext",undef),"Modulation: ASK/OOK","check reading cc1101_config_ext value");
Expand All @@ -25,7 +25,7 @@ InternalTimer(time(), sub {
my $target='dummyDuino';
my $targetHash = $defs{$target};

my ($ret)=SIGNALduino_CheckccConfResponse($targetHash,"C0Dn11=10AA568AF80222F851070018166C434091");
my ($ret)=SIGNALduino_CheckccConfResponse($targetHash,'C0Dn11=10AA568AF80222F851070018166C434091');
is($ret,"Freq: 433.300 MHz, Bandwidth: 203 kHz, rAmpl: 33 dB, sens: 8 dB, DataRate: 49.99 kBaud, Modulation: 2-FSK, Syncmod: 16/16 sync word bits detected, Deviation: 57.13 kHz","check return message");
is(ReadingsVal($target,"cc1101_config",undef),"Freq: 433.300 MHz, Bandwidth: 203 kHz, rAmpl: 33 dB, sens: 8 dB, DataRate: 49.99 kBaud","check reading cc1101_config value");
is(ReadingsVal($target,"cc1101_config_ext",undef),"Modulation: 2-FSK, Syncmod: 16/16 sync word bits detected, Deviation: 57.13 kHz");
Expand All @@ -36,7 +36,7 @@ InternalTimer(time(), sub {
my $target='dummyDuino';
my $targetHash = $defs{$target};

my ($ret)=SIGNALduino_CheckccConfResponse($targetHash,"C0Dn11=216%E857C43023B900070018146C040091");
my ($ret)=SIGNALduino_CheckccConfResponse($targetHash,'C0Dn11=216%E857C43023B900070018146C040091');
is($ret,'invalid value from uC. Only hexadecimal values are allowed. Please query again.','check return message');
};

Expand Down

0 comments on commit d4e2e5d

Please sign in to comment.