Skip to content

Commit

Permalink
Merge pull request #494 from LedgerHQ/remove-alignment-assertion-on-stax
Browse files Browse the repository at this point in the history
Remove the vertical alignment assertion on multiples of 4 on Stax
  • Loading branch information
nroggeman-ledger authored Jun 20, 2024
2 parents e461fef + 7f0aff5 commit 13addd2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions speculos/mcu/nbgl.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def __init__(self,
self.logger = logging.getLogger("NBGL")

def __assert_area(self, area) -> None:
if self.model == "stax" and (area.y0 % 4 or area.height % 4):
raise AssertionError("X(%d) or height(%d) not 4 aligned " % (area.y0, area.height))
if area.x0 > self.SCREEN_WIDTH or (area.x0+area.width) > self.SCREEN_WIDTH:
raise AssertionError("left edge (%d) or right edge (%d) out of screen" % (area.x0, (area.x0 + area.width)))
if area.y0 > self.SCREEN_HEIGHT or (area.y0+area.height) > self.SCREEN_HEIGHT:
Expand Down

0 comments on commit 13addd2

Please sign in to comment.