From 25a6dc931b713361300a5fabaf908f5346aad26c Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 27 Jul 2011 11:35:52 +0000 Subject: checksum fix git-svn-id: https://svn.spreadspace.org/mur.sat@65 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/tests/beacon/decode.pl | 2 +- software/ttx/ttx.asm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'software') 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(' '); } diff --git a/software/ttx/ttx.asm b/software/ttx/ttx.asm index 260314d..9fd38e8 100644 --- a/software/ttx/ttx.asm +++ b/software/ttx/ttx.asm @@ -500,6 +500,7 @@ send_char movf ELECNT,f btfsc STATUS,Z return + movf CHAR,w xorwf PARITY,f char_next_element -- cgit v1.2.3