mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
fix: handle is uninitialized when BFLB_BLE_DISABLE_STATIC_ATTR defined (#1895)
Signed-off-by: yuxiaojun <yuxiaojun@uniontech.com>
This commit is contained in:
@@ -1686,7 +1686,7 @@ static u8_t match_uuid(const struct bt_gatt_attr *attr, void *user_data) {
|
||||
int bt_gatt_notify_cb(struct bt_conn *conn, struct bt_gatt_notify_params *params) {
|
||||
struct notify_data data;
|
||||
const struct bt_gatt_attr *attr;
|
||||
u16_t handle;
|
||||
u16_t handle = 0;
|
||||
|
||||
__ASSERT(params, "invalid parameters\n");
|
||||
__ASSERT(params->attr, "invalid parameters\n");
|
||||
|
||||
Reference in New Issue
Block a user