Merge pull request #2330 from tannewt/epaper_gc_fix
Fix ePaper so it works after a GC.
This commit is contained in:
commit
f7426e0e61
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "shared-bindings/displayio/EPaperDisplay.h"
|
||||
|
||||
#include "py/gc.h"
|
||||
#include "py/runtime.h"
|
||||
#include "shared-bindings/displayio/ColorConverter.h"
|
||||
#include "shared-bindings/displayio/FourWire.h"
|
||||
|
@ -365,6 +366,8 @@ void release_epaperdisplay(displayio_epaperdisplay_obj_t* self) {
|
|||
|
||||
void displayio_epaperdisplay_collect_ptrs(displayio_epaperdisplay_obj_t* self) {
|
||||
displayio_display_core_collect_ptrs(&self->core);
|
||||
gc_collect_ptr(self->start_sequence);
|
||||
gc_collect_ptr(self->stop_sequence);
|
||||
}
|
||||
|
||||
bool maybe_refresh_epaperdisplay(void) {
|
||||
|
|
Loading…
Reference in New Issue