Honor 'blocking' parameter in inky_frame and inky_frame_7 update functions
This commit is contained in:
parent
cb06a20cb4
commit
3811195374
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue