From 605d2c55f9292ada46249d8684e675714aa1dc27 Mon Sep 17 00:00:00 2001 From: Tim Curtis Date: Sun, 15 Sep 2024 17:21:02 -0400 Subject: [PATCH] [pirev..py] Fix rev code decoding for Pi-1 models --- www/util/pirev.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/util/pirev.py b/www/util/pirev.py index f8f24764..ecba3293 100755 --- a/www/util/pirev.py +++ b/www/util/pirev.py @@ -123,7 +123,8 @@ def decode_new_style_code(code): "proc": proc } else: - old_rev = OLD_REVISION_CODES[code&0x17] + # Original was code&0x17 but this returned the entry for 0x004 when code = 0x00e + old_rev = OLD_REVISION_CODES[code] rev_info = { "type": old_rev[0], "rev": old_rev[1],