Honor 'blocking' parameter in inky_frame and inky_frame_7 update functions

pull/1042/head
Jaeheon Shim 2024-12-24 16:57:48 -05:00
rodzic cb06a20cb4
commit 3811195374
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

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

Wyświetl plik

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