@@ -689,17 +689,17 @@ mp_obj_t ModPicoGraphics_update(mp_obj_t self_in) {
689
689
*/
690
690
691
691
while (self->display ->is_busy ()) {
692
- #ifdef mp_event_handle_nowait
693
- mp_event_handle_nowait ( );
692
+ #ifdef MICROPY_BUILD_TYPE
693
+ mp_handle_pending ( true );
694
694
#endif
695
695
}
696
696
697
697
self->display ->update (self->graphics );
698
698
699
699
if (self->blocking ) {
700
700
while (self->display ->is_busy ()) {
701
- #ifdef mp_event_handle_nowait
702
- mp_event_handle_nowait ( );
701
+ #ifdef MICROPY_BUILD_TYPE
702
+ mp_handle_pending ( true );
703
703
#endif
704
704
}
705
705
@@ -715,8 +715,8 @@ mp_obj_t ModPicoGraphics_partial_update(size_t n_args, const mp_obj_t *args) {
715
715
ModPicoGraphics_obj_t *self = MP_OBJ_TO_PTR2 (args[ARG_self], ModPicoGraphics_obj_t);
716
716
717
717
while (self->display ->is_busy ()) {
718
- #ifdef mp_event_handle_nowait
719
- mp_event_handle_nowait ( );
718
+ #ifdef MICROPY_BUILD_TYPE
719
+ mp_handle_pending ( true );
720
720
#endif
721
721
}
722
722
@@ -729,8 +729,8 @@ mp_obj_t ModPicoGraphics_partial_update(size_t n_args, const mp_obj_t *args) {
729
729
730
730
if (self->blocking ) {
731
731
while (self->display ->is_busy ()) {
732
- #ifdef mp_event_handle_nowait
733
- mp_event_handle_nowait ( );
732
+ #ifdef MICROPY_BUILD_TYPE
733
+ mp_handle_pending ( true );
734
734
#endif
735
735
}
736
736
}
0 commit comments