Honor 'blocking' parameter in inky_frame and inky_frame_7 update functions

This commit is contained in:
Jaeheon Shim 2024-12-24 16:57:48 -05:00
parent cb06a20cb4
commit 3811195374
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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();