mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-29 04:18:54 +03:00
Use correct index into tuple in message_type()
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user