Skip to content

Commit

Permalink
Restyled by autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and jadhavrohit924 committed Jul 27, 2023
1 parent 685cc79 commit 64e3ce7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/tools/generate_esp32_chip_factory_bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def get_fixed_label_dict(fixed_labels):
# input : ['0/label1/1 1/label2/1']
# outout : {'1': [{'Label': 'label1', 'Mode': 0, 'Semantic_Tag': []}, {'Label': 'label2', 'Mode': 1, 'Semantic_Tag': []}]}


def get_supported_modes_dict(supported_modes):
output_dict = {}

Expand All @@ -245,7 +246,7 @@ def get_supported_modes_dict(supported_modes):
ep = mode_label_strs[2]

semantic_tags = ''
if (len(mode_label_strs) is 4):
if (len(mode_label_strs) == 4):
semantic_tag_strs = mode_label_strs[3].split(', ')
semantic_tags = [{"value": int(v.split('\\')[0]), "mfgCode": int(v.split('\\')[1], 16)} for v in semantic_tag_strs]

Expand Down

0 comments on commit 64e3ce7

Please sign in to comment.