Skip to content

Commit 119db2a

Browse files
committed
clean up
1 parent acce660 commit 119db2a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/custom_htm/custom_htm.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void loop()
204204
// Note: We use .indicate instead of .write!
205205
// If it is connected but CCCD is not enabled
206206
// The characteristic's value is still updated although indicate is not sent
207-
if ( htmc.indicate(0, htmdata, sizeof(htmdata)) ){
207+
if ( htmc.indicate(htmdata, sizeof(htmdata)) ){
208208
Serial.print("Temperature Measurement updated to: "); Serial.println(tempvalue);
209209
}else{
210210
Serial.println("ERROR: Indicate not set in the CCCD or not connected!");

libraries/Bluefruit52Lib/src/BLEClientCharacteristic.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,21 @@ class BLEClientCharacteristic
9191
uint16_t write32_resp (int value);
9292

9393
/*------------- Notify -------------*/
94-
bool writeCCCD (uint16_t value);
94+
bool writeCCCD (uint16_t value);
9595

96-
bool enableNotify (void);
97-
bool disableNotify (void);
96+
bool enableNotify (void);
97+
bool disableNotify (void);
9898

99-
bool enableIndicate (void);
100-
bool disableIndicate (void);
99+
bool enableIndicate (void);
100+
bool disableIndicate (void);
101101

102102
/*------------- Callbacks -------------*/
103-
void setNotifyCallback(notify_cb_t fp, bool useAdaCallback = true);
104-
void setIndicateCallback(indicate_cb_t fp, bool useAdaCallback = true);
103+
void setNotifyCallback(notify_cb_t fp, bool useAdaCallback = true);
104+
void setIndicateCallback(indicate_cb_t fp, bool useAdaCallback = true);
105105

106106
/*------------- Internal usage -------------*/
107-
void _assign(ble_gattc_char_t* gattc_chr);
108-
bool _discoverDescriptor(uint16_t conn_handle, ble_gattc_handle_range_t hdl_range);
107+
void _assign(ble_gattc_char_t* gattc_chr);
108+
bool _discoverDescriptor(uint16_t conn_handle, ble_gattc_handle_range_t hdl_range);
109109

110110
private:
111111
ble_gattc_char_t _chr;

0 commit comments

Comments
 (0)