[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on how the checksum is computed

From: marjon
Subject: Question on how the checksum is computed
Date: Thu, 02 May 2002 10:18:20 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv: Gecko/20020314 Netscape6/6.2.2

I would like to ask on how the checksum is computed?
This was the line I found in gnokii, module FBxx_RX_StateMachine(char rx_byte):
if (checksum[0] == checksum[1])
But what is the received bytes were like this:

I mean, I get checksum[0] = 0xcf & checksum[1] = f1
But they would never be equal right? so the program would not pass
through the  if statement?  But as I understand, it does? how is this?
Please explain.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]