Skip to content

Commit 6318e4c

Browse files
authored
Merge pull request #241 from grafail/patch-1
Resolve issue causing second buffer not to get created
2 parents f7f9308 + 512484d commit 6318e4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext_mod/lcd_bus/lcd_types.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ void rgb565_byte_swap(void *buf, uint32_t buf_size_px)
197197

198198
if (self->view1 == NULL) {
199199
self->view1 = view;
200+
self->buffer_flags = caps;
200201
} else if (self->buffer_flags != caps) {
201202
mp_raise_msg(&mp_type_MemoryError, MP_ERROR_TEXT("allocation flags must be the same for both buffers"));
202203
return mp_const_none;

0 commit comments

Comments
 (0)