diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-02-09 20:18:05 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-02-09 20:18:05 +0300 |
commit | 097752bcb135407f404fd8b6478a31b1e24a7f97 (patch) | |
tree | 5509fd6bac6dedd654e7852066fdf32f3c8053d2 | |
parent | dc3702b60e7491e0f16393ed74f8a5279cd74fe3 (diff) |
fix
-rwxr-xr-x | get_mbp101_ramcfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/get_mbp101_ramcfg b/get_mbp101_ramcfg index 0eef4e5..7cead1e 100755 --- a/get_mbp101_ramcfg +++ b/get_mbp101_ramcfg @@ -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]) |