px_uploader: make rev check a bit more intuitive

This commit is contained in:
Julian Oes 2018-02-03 12:10:27 +01:00 committed by Lorenz Meier
parent 6d00de7b25
commit a1ab84e5b9
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ class uploader(object):
raise RuntimeError("Firmware image is too large for this board") raise RuntimeError("Firmware image is too large for this board")
# OTP added in v4: # OTP added in v4:
if self.bl_rev > 3: if self.bl_rev >= 4:
for byte in range(0, 32*6, 4): for byte in range(0, 32*6, 4):
x = self.__getOTP(byte) x = self.__getOTP(byte)
self.otp = self.otp + x self.otp = self.otp + x