summaryrefslogtreecommitdiff
path: root/software/tests/beacon/decode.pl
diff options
context:
space:
mode:
Diffstat (limited to 'software/tests/beacon/decode.pl')
-rwxr-xr-xsoftware/tests/beacon/decode.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/software/tests/beacon/decode.pl b/software/tests/beacon/decode.pl
index 17c026d..b2b1446 100755
--- a/software/tests/beacon/decode.pl
+++ b/software/tests/beacon/decode.pl
@@ -25,7 +25,7 @@ foreach(@beacons) {
my $cntval = unpack("n", MIME::Base32::decode($cnt . "=")) >> 1;
my $csval_recv = unpack("C", MIME::Base32::decode($checksum . "=")) >> 3;
- my $csval_calc = ord('E') - ord(' ');
+ my $csval_calc = ord('A') - ord(' ');
my @values = unpack("C*", $preamble);
@values = (@values, unpack("C*", $cnt));
foreach(@values) { $csval_calc ^= $_ - ord(' '); }