Skip to content

Commit

Permalink
Honor 'blocking' parameter in inky_frame and inky_frame_7 update func…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
jaeheonshim committed Dec 24, 2024
1 parent cb06a20 commit 3811195
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libraries/inky_frame/inky_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ namespace pimoroni {
}

void InkyFrame::update(bool blocking) {
while(is_busy()) {
while(blocking && is_busy()) {
tight_loop_contents();
}
uc8159.update((PicoGraphics_PenP4 *)this);
while(is_busy()) {
while(blocking && is_busy()) {
tight_loop_contents();
}
uc8159.power_off();
Expand Down
4 changes: 2 additions & 2 deletions libraries/inky_frame_7/inky_frame_7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ namespace pimoroni {
}

void InkyFrame::update(bool blocking) {
while(is_busy()) {
while(blocking && is_busy()) {
tight_loop_contents();
}
inky73.update((PicoGraphics_PenInky7 *)this);
while(is_busy()) {
while(blocking && is_busy()) {
tight_loop_contents();
}
inky73.power_off();
Expand Down

0 comments on commit 3811195

Please sign in to comment.