make use of getValueHandle() as a short cut.

This commit is contained in:
Rohit Grover 2014-12-11 11:39:46 +00:00
parent 709abe6a97
commit eed20c82ce

View file

@ -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();