This commit is contained in:
hathach committed 2017-03-23 01:48:42 +07:00
1 parent 666c00cbf4
commit 71cc024ee4
3 files changed
+4 -4

No files matched your search

@@ -268,7 +268,7 @@ err_t BLECharacteristic::begin(void)
(void) ref_hdl; // not used
}
// Currently Only register to Bluefruit when having callback support
// Currently Only register to Bluefruit if callback is installed
// And The Characteristic must not be temporary memory i.e local variable
if ( !_is_temp &&
(_rd_authorize_cb || _wr_authorize_cb || _wr_cb || _cccd_wr_cb) )
@@ -283,7 +283,7 @@ err_t BLECharacteristic::begin(void)
* Call by Bluefruit event poll()
* @param event
*/
void BLECharacteristic::eventHandler(ble_evt_t* event)
void BLECharacteristic::_eventHandler(ble_evt_t* event)
{
switch(event->header.evt_id)
{
@@ -105,7 +105,7 @@ class BLECharacteristic
write_cccd_cb_t _cccd_wr_cb;
void _init(void);
void eventHandler(ble_evt_t* event);
void _eventHandler(ble_evt_t* event);
public:
BLEUuid uuid;
+1 -1
View File
@@ -678,7 +678,7 @@ COMMENT_OUT(
// GATTs characteristics event handler
for(int i=0; i<_chars_count; i++)
{
_chars_list[i]->eventHandler(evt);
_chars_list[i]->_eventHandler(evt);
}
}
/*------------------------------------------------------------------*/