/[RFID]/3m-810.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /3m-810.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8 by dpavlin, Sun Sep 28 22:10:55 2008 UTC revision 10 by dpavlin, Sun Sep 28 22:15:29 2008 UTC
# Line 223  sub dispatch { Line 223  sub dispatch {
223  # my $checksum = checksum( $bytes, $original_checksum );  # my $checksum = checksum( $bytes, $original_checksum );
224  sub checksum {  sub checksum {
225          my ( $bytes, $checksum ) = @_;          my ( $bytes, $checksum ) = @_;
226          my $xor = 0;  
227            my $xor = $checksum; # FIXME
228    
229          if ( defined $checksum && $xor ne $checksum ) {          if ( defined $checksum && $xor ne $checksum ) {
230                  printf "checksum doesn't match: %04x != %04x data: %s\n", $xor, $checksum;                  print "checksum doesn't match: ", as_hex($xor), " != ", as_hex($checksum), " data: ", as_hex($bytes), "\n";
231          }          }
232  }  }
233    

Legend:
Removed from v.8  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.26