Permalink
Browse files

tool/btstack_parser: fix camel case output

  • Loading branch information...
mringwal committed Nov 28, 2018
1 parent 2530362 commit 9c80623268f0a2370f1a74124a512dc912228aa0
Showing with 3 additions and 3 deletions.
  1. +3 −3 tool/btstack_parser.py
@@ -103,7 +103,7 @@ def parse_events():

return (events, subvents, event_types)

def my_parse_commands(infile, camel_case):
def my_parse_commands(infile, convert_to_camel_case):
commands = []
with open (infile, 'rt') as fin:

@@ -113,7 +113,7 @@ def my_parse_commands(infile, camel_case):
parts = re.match('.*@param\s*(\w*)\s*', line)
if parts and len(parts.groups()) == 1:
param = parts.groups()[0]
if camel_case:
if convert_to_camel_case:
param = camel_case_var(param)
else:
param = param.lower()
@@ -126,7 +126,7 @@ def my_parse_commands(infile, camel_case):
# drop _cmd suffix for daemon commands
if command_name.endswith('_cmd'):
command_name = command_name[:-len('_cmd')]
if camel_case:
if convert_to_camel_case:
command_name = camel_case(command_name)
else:
command_name = command_name.lower()

0 comments on commit 9c80623

Please sign in to comment.