File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 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){
616616 return 0 ;
617617}
618618
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)
620620{
621621 while (_pendingPkt >= _maxPkt) {
622622 poll ();
@@ -673,7 +673,7 @@ void HCIClass::noDebug()
673673 _debug = NULL ;
674674}
675675
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)
677677{
678678 struct __attribute__ ((packed)) {
679679 uint8_t pktType;
Original file line number Diff line number Diff line change @@ -110,15 +110,15 @@ class HCIClass {
110110 virtual int writeLK (uint8_t peerAddress[], uint8_t LK[]);
111111 virtual int tryResolveAddress (uint8_t * BDAddr, uint8_t * address);
112112
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);
114114
115115 virtual int disconnect (uint16_t handle);
116116
117117 virtual void debug (Stream& stream);
118118 virtual void noDebug ();
119119
120120 // 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 );
122122 uint8_t remotePublicKeyBuffer[64 ];
123123 uint8_t localPublicKeyBuffer[64 ];
124124 uint8_t remoteDHKeyCheckBuffer[16 ];
You can’t perform that action at this time.
0 commit comments