File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,7 @@ namespace pimoroni {
181
181
busy_wait ();
182
182
183
183
command (DRF, {0 }); // start display refresh
184
- busy_wait ();
185
-
184
+
186
185
if (blocking) {
187
186
busy_wait ();
188
187
Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ namespace pimoroni {
66
66
}
67
67
68
68
void InkyFrame::update (bool blocking) {
69
- while (is_busy ()) {
69
+ while (blocking && is_busy ()) {
70
70
tight_loop_contents ();
71
71
}
72
72
uc8159.update ((PicoGraphics_PenP4 *)this );
73
- while (is_busy ()) {
73
+ while (blocking && is_busy ()) {
74
74
tight_loop_contents ();
75
75
}
76
76
uc8159.power_off ();
Original file line number Diff line number Diff line change @@ -65,11 +65,11 @@ namespace pimoroni {
65
65
}
66
66
67
67
void InkyFrame::update (bool blocking) {
68
- while (is_busy ()) {
68
+ while (blocking && is_busy ()) {
69
69
tight_loop_contents ();
70
70
}
71
71
inky73.update ((PicoGraphics_PenInky7 *)this );
72
- while (is_busy ()) {
72
+ while (blocking && is_busy ()) {
73
73
tight_loop_contents ();
74
74
}
75
75
inky73.power_off ();
You can’t perform that action at this time.
0 commit comments