make use of getValueHandle() as a short cut.
This commit is contained in:
parent
709abe6a97
commit
eed20c82ce
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public:
|
|||
* Information about the characterisitc being updated.
|
||||
*/
|
||||
virtual void onDataWritten(const GattCharacteristicWriteCBParams *params) {
|
||||
if (params->charHandle == controlPoint.getValueAttribute().getHandle()) {
|
||||
if (params->charHandle == controlPoint.getValueHandle()) {
|
||||
/* At present, writing anything will do the trick--this needs to be improved. */
|
||||
if (handoverCallback) {
|
||||
handoverCallback();
|
||||
|
|
Loading…
Reference in a new issue