File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ int HCIClass::tryResolveAddress(uint8_t* BDAddr, uint8_t* address){
616
616
return 0 ;
617
617
}
618
618
619
- int HCIClass::sendAclPkt (uint16_t handle, uint8_t cid, uint8_t plen, void * data)
619
+ int HCIClass::sendAclPkt (uint16_t handle, uint8_t cid, uint8_t plen, const void * data)
620
620
{
621
621
while (_pendingPkt >= _maxPkt) {
622
622
poll ();
@@ -673,7 +673,7 @@ void HCIClass::noDebug()
673
673
_debug = NULL ;
674
674
}
675
675
676
- int HCIClass::sendCommand (uint16_t opcode, uint8_t plen, void * parameters)
676
+ int HCIClass::sendCommand (uint16_t opcode, uint8_t plen, const void * parameters)
677
677
{
678
678
struct __attribute__ ((packed)) {
679
679
uint8_t pktType;
Original file line number Diff line number Diff line change @@ -110,15 +110,15 @@ class HCIClass {
110
110
virtual int writeLK (uint8_t peerAddress[], uint8_t LK[]);
111
111
virtual int tryResolveAddress (uint8_t * BDAddr, uint8_t * address);
112
112
113
- virtual int sendAclPkt (uint16_t handle, uint8_t cid, uint8_t plen, void * data);
113
+ virtual int sendAclPkt (uint16_t handle, uint8_t cid, uint8_t plen, const void * data);
114
114
115
115
virtual int disconnect (uint16_t handle);
116
116
117
117
virtual void debug (Stream& stream);
118
118
virtual void noDebug ();
119
119
120
120
// TODO: Send command be private again & use ATT implementation of send command within ATT.
121
- virtual int sendCommand (uint16_t opcode, uint8_t plen = 0 , void * parameters = NULL );
121
+ virtual int sendCommand (uint16_t opcode, uint8_t plen = 0 , const void * parameters = nullptr );
122
122
uint8_t remotePublicKeyBuffer[64 ];
123
123
uint8_t localPublicKeyBuffer[64 ];
124
124
uint8_t remoteDHKeyCheckBuffer[16 ];
You can’t perform that action at this time.
0 commit comments