Skip to content

Commit

Permalink
read CRC from position 0
Browse files Browse the repository at this point in the history
  • Loading branch information
breaker27 committed Dec 5, 2013
1 parent 7952f30 commit b85f684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/shc_basestation/shc_basestation.c
Expand Up @@ -354,8 +354,8 @@ int main ( void )
//UART_PUTS("Decrypted bytes: ");
//printbytearray(bufx, len);

assumed_crc = getBuf32(len - 4);
actual_crc = crc32(bufx, len - 4);
assumed_crc = getBuf32(0);
actual_crc = crc32(bufx + 4, len - 4);

//UART_PUTF("Received CRC32 would be %lx\r\n", assumed_crc);
//UART_PUTF("Re-calculated CRC32 is %lx\r\n", actual_crc);
Expand Down

0 comments on commit b85f684

Please sign in to comment.