Skip to content

Commit

Permalink
Update for bt-common API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Dec 6, 2021
1 parent ba34015 commit c89bebc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/PAL/HAPPlatformBLEPeripheralManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,6 @@ namespace hap {
}
case MGOS_BT_GATTS_EV_READ: {
struct mgos_bt_gatts_read_arg* arg = (struct mgos_bt_gatts_read_arg*) ev_arg;
if (arg->offset != 0) {
return MGOS_BT_GATT_STATUS_INVALID_OFFSET;
}
uint16_t handle = GetHandleByUUID(&arg->svc_uuid, &arg->char_uuid);
if (handle == 0) {
return MGOS_BT_GATT_STATUS_INVALID_HANDLE;
Expand Down Expand Up @@ -468,9 +465,6 @@ namespace hap {
}
case MGOS_BT_GATTS_EV_WRITE: {
struct mgos_bt_gatts_write_arg* arg = (struct mgos_bt_gatts_write_arg*) ev_arg;
if (arg->offset != 0) {
return MGOS_BT_GATT_STATUS_INVALID_OFFSET;
}
if (arg->data.len > kHAPPlatformBLEPeripheralManager_MaxAttributeBytes) {
return MGOS_BT_GATT_STATUS_INVALID_ATT_VAL_LENGTH;
}
Expand Down

0 comments on commit c89bebc

Please sign in to comment.