Fix formatting

This commit is contained in:
Manassarn Manoonchai 2023-01-03 23:37:06 +07:00
parent f938c971b9
commit fd65189393
2 changed files with 11 additions and 12 deletions

View file

@ -22,7 +22,6 @@ struct zmk_split_run_behavior_payload {
char behavior_dev[ZMK_SPLIT_RUN_BEHAVIOR_DEV_LEN]; char behavior_dev[ZMK_SPLIT_RUN_BEHAVIOR_DEV_LEN];
} __packed; } __packed;
int zmk_split_bt_position_pressed(uint8_t position); int zmk_split_bt_position_pressed(uint8_t position);
int zmk_split_bt_position_released(uint8_t position); int zmk_split_bt_position_released(uint8_t position);
int zmk_split_bt_sensor_triggered(uint8_t sensor_number, struct sensor_value value); int zmk_split_bt_sensor_triggered(uint8_t sensor_number, struct sensor_value value);

View file

@ -379,18 +379,18 @@ static uint8_t split_central_service_discovery_func(struct bt_conn *conn,
} }
#if ZMK_KEYMAP_HAS_SENSORS #if ZMK_KEYMAP_HAS_SENSORS
memcpy(&sensor_uuid, BT_UUID_DECLARE_128(ZMK_SPLIT_BT_CHAR_SENSOR_STATE_UUID), memcpy(&sensor_uuid, BT_UUID_DECLARE_128(ZMK_SPLIT_BT_CHAR_SENSOR_STATE_UUID),
sizeof(sensor_uuid)); sizeof(sensor_uuid));
sensor_discover_params.uuid = &sensor_uuid.uuid; sensor_discover_params.uuid = &sensor_uuid.uuid;
sensor_discover_params.start_handle = attr->handle; sensor_discover_params.start_handle = attr->handle;
sensor_discover_params.end_handle = 0xffff; sensor_discover_params.end_handle = 0xffff;
sensor_discover_params.type = BT_GATT_DISCOVER_CHARACTERISTIC; sensor_discover_params.type = BT_GATT_DISCOVER_CHARACTERISTIC;
sensor_discover_params.func = split_central_sensor_desc_discovery_func; sensor_discover_params.func = split_central_sensor_desc_discovery_func;
err = bt_gatt_discover(conn, &sensor_discover_params); err = bt_gatt_discover(conn, &sensor_discover_params);
if (err) { if (err) {
LOG_ERR("Discover failed (err %d)", err); LOG_ERR("Discover failed (err %d)", err);
} }
#endif /* ZMK_KEYMAP_HAS_SENSORS */ #endif /* ZMK_KEYMAP_HAS_SENSORS */
return BT_GATT_ITER_STOP; return BT_GATT_ITER_STOP;