kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Badger2040: Fix ebook.py missing lines for #280
rodzic
36c1b469b1
commit
c6debfc091
|
@ -196,7 +196,7 @@ def render_page():
|
||||||
row += 1
|
row += 1
|
||||||
|
|
||||||
# Have we reached the end of the page?
|
# Have we reached the end of the page?
|
||||||
if (row * TEXT_SPACING) + (TEXT_SPACING // 2) > HEIGHT:
|
if (row * TEXT_SPACING) + TEXT_SPACING >= HEIGHT:
|
||||||
print("+++++")
|
print("+++++")
|
||||||
display.update()
|
display.update()
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ def render_page():
|
||||||
if add_newline:
|
if add_newline:
|
||||||
print("")
|
print("")
|
||||||
row += 1
|
row += 1
|
||||||
if (row * TEXT_SPACING) + (TEXT_SPACING // 2) > HEIGHT:
|
if (row * TEXT_SPACING) + TEXT_SPACING >= HEIGHT:
|
||||||
print("+++++")
|
print("+++++")
|
||||||
display.update()
|
display.update()
|
||||||
return
|
return
|
||||||
|
|
Ładowanie…
Reference in New Issue