Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
odudex committed Nov 11, 2024
1 parent 790604d commit 734c37b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/krux/pages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ def capture_from_keypad(
"""
buffer = starting_buffer
pad = Keypad(self.ctx, keysets, possible_keys_fn)
big_tittle = len(self.ctx.display.to_lines(title)) > 1
big_title = len(self.ctx.display.to_lines(title)) > 1
while True:
self.ctx.display.clear()
offset_y = MINIMAL_PADDING if big_tittle else DEFAULT_PADDING
offset_y = MINIMAL_PADDING if big_title else DEFAULT_PADDING
if lcd.string_width_px(buffer) < self.ctx.display.width():
self.ctx.display.draw_hcentered_text(title, offset_y)
if big_tittle:
if big_title:
offset_y += 2 * FONT_HEIGHT

Check warning on line 158 in src/krux/pages/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/krux/pages/__init__.py#L158

Added line #L158 was not covered by tests
else:
offset_y += FONT_HEIGHT * 3 // 2
Expand Down

0 comments on commit 734c37b

Please sign in to comment.