diff main.c @ 26:d3e5934fe55c

- Move crc16 to utils and fix it - Fix main.c crc calculation
author Matt Johnston <matt@ucc.asn.au>
date Thu, 07 Jun 2012 20:26:50 +0800
parents 2943f62c8e62
children dbbd503119ba
line wrap: on
line diff
--- a/main.c	Wed Jun 06 23:05:35 2012 +0800
+++ b/main.c	Thu Jun 07 20:26:50 2012 +0800
@@ -204,7 +204,7 @@
     UDR0 = c;
     if (stream == crc_stdout)
     {
-        crc_out = _crc_ccitt_update(crc_out, '\n');
+        crc_out = _crc_ccitt_update(crc_out, c);
     }
     if (c == '\r')
     {