Skip to content

Commit 4e6bf75

Browse files
committed
Fix for ble_modify_setup_data
1 parent a87ba21 commit 4e6bf75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/BLE/examples/ble_modify_setup_data/ble_modify_setup_data.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Initialize the radio_ack. This is the ack received for every transmitted packet.
137137

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

142142
uint16_t i;
143143

@@ -200,7 +200,7 @@ void setup(void)
200200
}
201201
Serial.print(F("0x"));
202202
Serial.println(msg_len, HEX);
203-
crc_seed = crc_16_ccitt(crc_seed, &setup_msgs[crc_loop].buffer[0], msg_len);
203+
crc_seed = crc_16_ccitt(crc_seed, (hal_aci_data_t*) &setup_msgs[crc_loop].buffer[0], msg_len);
204204
}
205205
Serial.print(F("0x"));
206206
Serial.println(crc_seed, HEX);

0 commit comments

Comments
 (0)