File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -247,6 +247,9 @@ uint16_t common_hal_displayio_epaperdisplay_get_rotation(displayio_epaperdisplay
247
247
}
248
248
249
249
mp_obj_t common_hal_displayio_epaperdisplay_get_root_group (displayio_epaperdisplay_obj_t * self ) {
250
+ if (self -> core .current_group == NULL ) {
251
+ return mp_const_none ;
252
+ }
250
253
return self -> core .current_group ;
251
254
}
252
255
Original file line number Diff line number Diff line change @@ -363,6 +363,9 @@ void framebufferio_framebufferdisplay_reset(framebufferio_framebufferdisplay_obj
363
363
}
364
364
365
365
mp_obj_t common_hal_framebufferio_framebufferdisplay_get_root_group (framebufferio_framebufferdisplay_obj_t * self ) {
366
+ if (self -> core .current_group == NULL ) {
367
+ return mp_const_none ;
368
+ }
366
369
return self -> core .current_group ;
367
370
}
368
371
You can’t perform that action at this time.
0 commit comments