From bebfe5dbca945a51580019d2a5594f003b7db18b Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Fri, 2 Dec 2016 09:32:02 -0500 Subject: [PATCH] Add cast for compatibility with the next version of CurieBLE --- utility/BLEStream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/BLEStream.h b/utility/BLEStream.h index 731a4318..56b36488 100644 --- a/utility/BLEStream.h +++ b/utility/BLEStream.h @@ -118,7 +118,7 @@ bool BLEStream::poll() void BLEStream::end() { - this->_rxCharacteristic.setEventHandler(BLEWritten, NULL); + this->_rxCharacteristic.setEventHandler(BLEWritten, (void(*)(BLECentral&, BLECharacteristic&))NULL); this->_rxHead = this->_rxTail = 0; flush(); BLEPeripheral::disconnect();