Skip to content

Commit

Permalink
[pirev..py] Fix rev code decoding for Pi-1 models
Browse files Browse the repository at this point in the history
  • Loading branch information
moodeaudio committed Sep 15, 2024
1 parent e57764a commit 605d2c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/util/pirev.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 605d2c5

Please sign in to comment.