summaryrefslogtreecommitdiff
path: root/get_mbp101_ramcfg
diff options
context:
space:
mode:
Diffstat (limited to 'get_mbp101_ramcfg')
-rwxr-xr-xget_mbp101_ramcfg2
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])