Skip to content
Snippets Groups Projects
Commit 1927979c authored by burneykb's avatar burneykb
Browse files

Actual fix here...maybe..

parent 7f85d2e0
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,7 @@ int formatPacket(metadata_t *metadata, void *data, unsigned char **formattedComm ...@@ -177,7 +177,7 @@ int formatPacket(metadata_t *metadata, void *data, unsigned char **formattedComm
// Checksum // Checksum
// receive data and calculate checksum // receive data and calculate checksum
int i; int i;
char data_checksum; char data_checksum = 0;
for(i = 0; i < 7 + metadata->data_len; i++) for(i = 0; i < 7 + metadata->data_len; i++)
{ {
data_checksum ^= (*formattedCommand)[i]; data_checksum ^= (*formattedCommand)[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment