@@ -460,14 +460,14 @@ int HCIClass::leConnUpdate(uint16_t handle, uint16_t minInterval, uint16_t maxIn
460
460
461
461
return sendCommand (OGF_LE_CTL << 10 | OCF_LE_CONN_UPDATE, sizeof (leConnUpdateData), &leConnUpdateData);
462
462
}
463
- int HCIClass::saveNewAddress (uint8_t addressType, uint8_t * address, uint8_t * peerIrk, uint8_t * localIrk){
463
+ void HCIClass::saveNewAddress (uint8_t addressType, uint8_t * address, uint8_t * peerIrk, uint8_t * localIrk){
464
464
if (_storeIRK!=0 ){
465
465
_storeIRK (address, peerIrk);
466
466
}
467
467
// Again... this should work
468
468
// leAddResolvingAddress(addressType, address, peerIrk, localIrk);
469
469
}
470
- int HCIClass::leAddResolvingAddress (uint8_t addressType, uint8_t * peerAddress, uint8_t * peerIrk, uint8_t * localIrk){
470
+ void HCIClass::leAddResolvingAddress (uint8_t addressType, uint8_t * peerAddress, uint8_t * peerIrk, uint8_t * localIrk){
471
471
leStopResolvingAddresses ();
472
472
473
473
struct __attribute__ ((packed)) AddDevice {
@@ -527,7 +527,7 @@ int HCIClass::leReadPeerResolvableAddress(uint8_t peerAddressType, uint8_t* peer
527
527
return res;
528
528
}
529
529
530
- int HCIClass::writeLK (uint8_t peerAddress[], uint8_t LK[]){
530
+ void HCIClass::writeLK (uint8_t peerAddress[], uint8_t LK[]){
531
531
struct __attribute__ ((packed)) StoreLK {
532
532
uint8_t nKeys;
533
533
uint8_t BD_ADDR[6 ];
@@ -538,7 +538,7 @@ int HCIClass::writeLK(uint8_t peerAddress[], uint8_t LK[]){
538
538
for (int i=0 ; i<16 ; i++) storeLK.LTK [15 -i] = LK[i];
539
539
HCI.sendCommand (OGF_HOST_CTL << 10 | 0x11 , sizeof (storeLK), &storeLK);
540
540
}
541
- int HCIClass::readStoredLKs (){
541
+ void HCIClass::readStoredLKs (){
542
542
uint8_t BD_ADDR[6 ];
543
543
readStoredLK (BD_ADDR, 1 );
544
544
}
0 commit comments