- Fix attribute id of HIDBatteryPower
- Fix two typos in comments Approved by: emax
This commit is contained in:
parent
bd5a9920c2
commit
595dedc1b0
@ -54,9 +54,9 @@ SDP_ATTR_RANGE( SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST,
|
||||
SDP_ATTR_RANGE (SDP_ATTR_ADDITIONAL_PROTOCOL_DESCRIPTOR_LISTS,
|
||||
SDP_ATTR_ADDITIONAL_PROTOCOL_DESCRIPTOR_LISTS),
|
||||
SDP_ATTR_RANGE( 0x0205, /* HIDReconnectInitiate */
|
||||
0x0206), /* HIDDesctiptorList */
|
||||
SDP_ATTR_RANGE( 0x020a, /* HIDBatteryPower */
|
||||
0x020a),
|
||||
0x0206), /* HIDDescriptorList */
|
||||
SDP_ATTR_RANGE( 0x0209, /* HIDBatteryPower */
|
||||
0x0209),
|
||||
SDP_ATTR_RANGE( 0x020d, /* HIDNormallyConnectable */
|
||||
0x020d)
|
||||
};
|
||||
@ -131,14 +131,14 @@ hid_sdp_query(bdaddr_t const *local, struct hid_device *hd, int32_t *error)
|
||||
reconnect_initiate = hid_sdp_parse_boolean(&values[i]);
|
||||
break;
|
||||
|
||||
case 0x0206: /* HIDDesctiptorList */
|
||||
case 0x0206: /* HIDDescriptorList */
|
||||
if (hid_sdp_parse_hid_descriptor(&values[i]) == 0) {
|
||||
hid_descriptor = values[i].value;
|
||||
hid_descriptor_length = values[i].vlen;
|
||||
}
|
||||
break;
|
||||
|
||||
case 0x020a: /* HIDBatteryPower */
|
||||
case 0x0209: /* HIDBatteryPower */
|
||||
battery_power = hid_sdp_parse_boolean(&values[i]);
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user