From c6debfc0917d95623db9771fc0b8dcbc0380e0fa Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Thu, 10 Mar 2022 10:37:39 +0000 Subject: [PATCH] Badger2040: Fix ebook.py missing lines for #280 --- micropython/examples/badger2040/ebook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micropython/examples/badger2040/ebook.py b/micropython/examples/badger2040/ebook.py index 0ebdf407..c2bb2898 100644 --- a/micropython/examples/badger2040/ebook.py +++ b/micropython/examples/badger2040/ebook.py @@ -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