From 40dbb6b813c5bbd7d9cc35dccd975b83f448d4cc Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 22 Dec 2017 12:38:30 +0100 Subject: [PATCH] fix: one less block --- client/pm3_mfdread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/pm3_mfdread.py b/client/pm3_mfdread.py index a2c8ec3fe..4172f1812 100644 --- a/client/pm3_mfdread.py +++ b/client/pm3_mfdread.py @@ -10,7 +10,7 @@ #or # pip install bitstring #Usage: -# mfdread.py ./dump.mfd +# pm3_mfdread.py ./dump.mfd # import codecs @@ -220,7 +220,7 @@ def print_info(data): if q == 0 and z == 0: permissions = "-" - elif z == n_blocks: + elif z == n_blocks - 1: permissions = accbits_to_permission_sector(blockrights[q][z]) else: permissions = accbits_to_permission_data(blockrights[q][z])