fix
This commit is contained in:
parent
dc3702b60e
commit
097752bcb1
@ -40,7 +40,7 @@ def main():
|
||||
# reverse bit order
|
||||
ramcfg = int('{:04b}'.format(ramcfg)[::-1], 2)
|
||||
|
||||
if ramcfg > len(ramconfigs):
|
||||
if ramcfg >= len(ramconfigs):
|
||||
print("unsupported memory configuration %d" % ramcfg)
|
||||
else:
|
||||
print(ramconfigs[ramcfg])
|
||||
|
Loading…
x
Reference in New Issue
Block a user