Skip to content

Commit 947784f

Browse files
Merge pull request #335 from sandeepmistry/curie-ble-v2
Add cast for compatibility with the next version of CurieBLE
2 parents 44e9026 + bebfe5d commit 947784f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utility/BLEStream.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ bool BLEStream::poll()
118118

119119
void BLEStream::end()
120120
{
121-
this->_rxCharacteristic.setEventHandler(BLEWritten, NULL);
121+
this->_rxCharacteristic.setEventHandler(BLEWritten, (void(*)(BLECentral&, BLECharacteristic&))NULL);
122122
this->_rxHead = this->_rxTail = 0;
123123
flush();
124124
BLEPeripheral::disconnect();

0 commit comments

Comments
 (0)