summaryrefslogtreecommitdiff
path: root/software/tests/beacon
diff options
context:
space:
mode:
Diffstat (limited to 'software/tests/beacon')
-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 b2b1446..28bf82b 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('A') - ord(' ');
+ my $csval_calc = ord('N') - ord(' ');
my @values = unpack("C*", $preamble);
@values = (@values, unpack("C*", $cnt));
foreach(@values) { $csval_calc ^= $_ - ord(' '); }