Merge pull request #289 from pimoroni/patch-badger2040-ebook

Badger2040: Fix ebook.py missing lines for #280
This commit is contained in:
Philip Howard 2022-03-10 12:05:42 +00:00 committed by GitHub
commit 2c904f6b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ def render_page():
row += 1
# Have we reached the end of the page?
if (row * TEXT_SPACING) + (TEXT_SPACING // 2) > HEIGHT:
if (row * TEXT_SPACING) + TEXT_SPACING >= HEIGHT:
print("+++++")
display.update()
@ -212,7 +212,7 @@ def render_page():
if add_newline:
print("")
row += 1
if (row * TEXT_SPACING) + (TEXT_SPACING // 2) > HEIGHT:
if (row * TEXT_SPACING) + TEXT_SPACING >= HEIGHT:
print("+++++")
display.update()
return