Use correct index into tuple in message_type()

This commit is contained in:
Joerg Wunsch
2024-03-19 23:06:47 +01:00
parent 984eb922b2
commit 5fd5cffdda

View File

@@ -152,7 +152,7 @@ def message_type(msglvl: int):
if msglvl > len(tnames):
return 'unknown msglvl'
else:
return tnames(msglvl)
return tnames[msglvl]
# rough equivalent of avrdude_message2()
# first argument is either "stdout" or "stderr"