Skip to content

Commit

Permalink
Fix #155, Remove unnecessary type translations
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Feb 16, 2021
1 parent 46be77d commit 7d37c0a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Subsystems/cmdGui/CHeaderParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,13 @@


#
# Determines data type (--string, --byte, --half, --word, --double)
# Translate data type if needed
#
def findDataTypeNew(dataTypeOrig, paramName):
if '[' in paramName:
return '--string'
if dataTypeOrig in ['uint8', 'boolean']:
if dataTypeOrig in ['boolean']:
return '--byte'
if dataTypeOrig == 'uint16':
return '--half'
if dataTypeOrig == 'uint32':
return '--word'
if dataTypeOrig == 'uint64':
return '--double'
return None


Expand Down

0 comments on commit 7d37c0a

Please sign in to comment.