Skip to content

Commit 8d1b537

Browse files
committed
[Bugfix] Incorrect onSubscribe value when indications are set.
1 parent 557da0b commit 8d1b537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NimBLEServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ int NimBLEServer::handleGapEvent(ble_gap_event* event, void* arg) {
445445

446446
chr->m_pCallbacks->onSubscribe(chr,
447447
peerInfo,
448-
event->subscribe.cur_notify + event->subscribe.cur_indicate);
448+
event->subscribe.cur_notify + (event->subscribe.cur_indicate << 1));
449449
}
450450
}
451451
}

0 commit comments

Comments
 (0)