mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 06:44:32 +00:00
java: collect hfp and hsp subevents in seperate lists
This commit is contained in:
parent
204788c830
commit
edc5c5fee9
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# BlueKitchen GmbH (c) 2014
|
# BlueKitchen GmbH (c) 2014
|
||||||
|
|
||||||
@ -50,6 +51,8 @@ def parse_defines():
|
|||||||
def my_parse_events(path):
|
def my_parse_events(path):
|
||||||
events = []
|
events = []
|
||||||
le_events = []
|
le_events = []
|
||||||
|
hfp_events = []
|
||||||
|
hsp_events = []
|
||||||
params = []
|
params = []
|
||||||
event_types = set()
|
event_types = set()
|
||||||
format = None
|
format = None
|
||||||
@ -68,6 +71,10 @@ def my_parse_events(path):
|
|||||||
if format != None:
|
if format != None:
|
||||||
if key.lower().startswith('hci_subevent_'):
|
if key.lower().startswith('hci_subevent_'):
|
||||||
le_events.append((value, key.lower().replace('hci_subevent_', 'hci_event_'), format, params))
|
le_events.append((value, key.lower().replace('hci_subevent_', 'hci_event_'), format, params))
|
||||||
|
elif key.lower().startswith('hsp_subevent_'):
|
||||||
|
hsp_events.append((value, key.lower().replace('hsp_subevent_', 'hsp_event_'), format, params))
|
||||||
|
elif key.lower().startswith('hfp_subevent_'):
|
||||||
|
hfp.append((value, key.lower().replace('hfp_subevent_', 'hfp_event_'), format, params))
|
||||||
else:
|
else:
|
||||||
events.append((value, key, format, params))
|
events.append((value, key, format, params))
|
||||||
event_types.add(key)
|
event_types.add(key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user