File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libraries/BLE/examples/ble_modify_setup_data Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments