Skip to content

Commit

Permalink
Merge pull request #1130 from spark/fix/gcc_platform_handshake
Browse files Browse the repository at this point in the history
Bugfix for subscriptions checksum calculation
  • Loading branch information
sergeuz authored Sep 30, 2016
2 parents d0d9c19 + 51b3901 commit d621a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion communication/src/subscriptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Subscriptions
chk[0] = checksum;
chk[1] = calculate_crc((const uint8_t*)handler.device_id, sizeof(handler.device_id));
chk[2] = calculate_crc((const uint8_t*)handler.filter, sizeof(handler.filter));
chk[3] = calculate_crc((const uint8_t*)handler.scope, sizeof(handler.scope));
chk[3] = calculate_crc((const uint8_t*)&handler.scope, sizeof(handler.scope));
checksum = calculate_crc((const uint8_t*)chk, sizeof(chk));
return NO_ERROR;
});
Expand Down

0 comments on commit d621a96

Please sign in to comment.