1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-24 00:35:14 +03:00

Bug in numbering of Lua multiple fields (only in generated documentation file, all numbers were too small by 1)

This commit is contained in:
Damjan Adamic 2014-10-16 18:27:28 +02:00
parent 0b8963b15e
commit ce303b2f4a

View file

@ -185,7 +185,7 @@ if docFile:
#prepare fields
all_exports = [(name, desc) for (id, name, desc) in exports]
for (id, nameFormat, descriptionFormat, valuesCount) in exports_multiple:
for v in range(valuesCount):
for v in range(1, valuesCount + 1):
name = nameFormat + str(v)
desc = descriptionFormat % v
all_exports.append( (name, desc) )