Merge pull request #3507 from jepler/issue3506-matrixportal-crash

displayio: Fix matrixportal crash
This commit is contained in:
Limor "Ladyada" Fried 2020-10-02 22:16:32 -04:00 committed by GitHub
commit 9535edb8f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ bool displayio_display_core_get_dither(displayio_display_core_t* self){
}
bool displayio_display_core_bus_free(displayio_display_core_t *self) {
return self->bus_free(self->bus);
return !self->bus || self->bus_free(self->bus);
}
bool displayio_display_core_begin_transaction(displayio_display_core_t* self) {