mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-25 17:25:10 +03:00
Cosmetics
This commit is contained in:
parent
da0b422dce
commit
318fc79dfe
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ def addLine(filename, newline, after):
|
||||||
|
|
||||||
def modifyTranslations(constant, translation, after):
|
def modifyTranslations(constant, translation, after):
|
||||||
for filename in glob.glob('translations/*.h.txt'):
|
for filename in glob.glob('translations/*.h.txt'):
|
||||||
newline = "#define " + constant + " "*(23-len(constant)) + '"' + translation + '"'
|
newline = "#define " + constant + " "*max(1, 23-len(constant)) + '"' + translation + '"'
|
||||||
addLine(filename, newline, after+" ")
|
addLine(filename, newline, after+" ")
|
||||||
|
|
||||||
def modifyDeclaration(constant, after):
|
def modifyDeclaration(constant, after):
|
||||||
|
|
|
@ -28,7 +28,7 @@ def checkName(name):
|
||||||
warning = True
|
warning = True
|
||||||
dups_name.append(name)
|
dups_name.append(name)
|
||||||
if name != name.lower():
|
if name != name.lower():
|
||||||
print "WARNING:Name not in lower case %s found for constant %s" % (name, CONSTANT_VALUE)
|
print "WARNING: Name not in lower case %s found for constant %s" % (name, CONSTANT_VALUE)
|
||||||
warning = True
|
warning = True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue