Skip to content
Snippets Groups Projects
Commit b9311d11 authored by schneider's avatar schneider
Browse files

fix(ble): Always assume the HID CCCDs are enabled

This is a quick fix for #197
parent d923b261
No related branches found
No related tags found
1 merge request!382HID over BLE
......@@ -98,7 +98,7 @@ static void hidAppMouseSendData(dmConnId_t connId)
cccHandle = HIDAPP_MBI_CCC_HDL;
}
if (AttsCccEnabled(connId, cccHandle)) {
if (AttsCccEnabled(connId, cccHandle) || 1) {
if (hidAppCb.txFlags & HIDAPP_TX_FLAGS_PENDING) {
if (hidAppCb.txFlags & HIDAPP_TX_FLAGS_READY) {
uint8_t buffer[HIDAPP_MOUSE_INPUT_REPORT_LEN];
......@@ -151,7 +151,7 @@ static void hidAppkeyboardSendData(dmConnId_t connId)
cccHandle = HIDAPP_KBI_CCC_HDL;
}
if (AttsCccEnabled(connId, cccHandle)) {
if (AttsCccEnabled(connId, cccHandle) || 1) {
if (hidAppCb.txFlags & HIDAPP_TX_FLAGS_PENDING) {
if (hidAppCb.txFlags & HIDAPP_TX_FLAGS_READY) {
uint8_t buffer[HIDAPP_KEYBOARD_INPUT_REPORT_LEN];
......@@ -197,7 +197,7 @@ static void hidAppkeyboardSendData(dmConnId_t connId)
/*************************************************************************************************/
static void hidAppRemoteSendData(dmConnId_t connId)
{
if (AttsCccEnabled(connId, HIDAPP_IN_REMOTE_CCC_HDL)) {
if (AttsCccEnabled(connId, HIDAPP_IN_REMOTE_CCC_HDL) || 1) {
if (hidAppCb.txFlags & HIDAPP_TX_FLAGS_PENDING) {
if (hidAppCb.txFlags & HIDAPP_TX_FLAGS_READY) {
uint8_t buffer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment