java: fix build

This commit is contained in:
Matthias Ringwald 2022-01-17 15:04:50 +01:00
parent 17348a8fb5
commit 09f429629a

View File

@ -325,6 +325,9 @@ def create_event(event_name, format, args):
def event_supported(event_name):
parts = event_name.split('_')
# skip gap subevents
if event_name.startswith("GAP_SUBEVENT"):
return False
return parts[0] in ['ATT', 'BTSTACK', 'DAEMON', 'L2CAP', 'RFCOMM', 'SDP', 'GATT', 'GAP', 'HCI', 'SM', 'BNEP']
def class_name_for_event(event_name):