Skip to content

Commit

Permalink
Fix for ble_modify_setup_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Skjerve committed Mar 5, 2015
1 parent a87ba21 commit 4e6bf75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Initialize the radio_ack. This is the ack received for every transmitted packet.

/** crc function to re-calulate the CRC after making changes to the setup data.
*/
uint16_t crc_16_ccitt(uint16_t crc, uint8_t * data_in, uint16_t data_len) {
uint16_t crc_16_ccitt(uint16_t crc, hal_aci_data_t * data_in, uint16_t data_len) {

uint16_t i;

Expand Down Expand Up @@ -200,7 +200,7 @@ void setup(void)
}
Serial.print(F("0x"));
Serial.println(msg_len, HEX);
crc_seed = crc_16_ccitt(crc_seed, &setup_msgs[crc_loop].buffer[0], msg_len);
crc_seed = crc_16_ccitt(crc_seed, (hal_aci_data_t*) &setup_msgs[crc_loop].buffer[0], msg_len);
}
Serial.print(F("0x"));
Serial.println(crc_seed, HEX);
Expand Down

0 comments on commit 4e6bf75

Please sign in to comment.