Skip to content

Commit e85f710

Browse files
committed
Fix Frambuffer dma_commands in PSRAM test.
1 parent 97cc6f4 commit e85f710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2350.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ void common_hal_picodvi_framebuffer_construct(picodvi_framebuffer_obj_t *self,
292292
self->dma_commands_len = (MODE_720_V_FRONT_PORCH + MODE_720_V_SYNC_WIDTH + MODE_720_V_BACK_PORCH + 2 * MODE_720_V_ACTIVE_LINES + 1) * dma_command_size;
293293
}
294294
self->dma_commands = (uint32_t *)port_malloc(self->dma_commands_len * sizeof(uint32_t), true);
295-
if (self->dma_commands == NULL || ((size_t)self->framebuffer & 0xf0000000) == 0x10000000) {
295+
if (self->dma_commands == NULL || ((size_t)self->dma_commands & 0xf0000000) == 0x10000000) {
296296
common_hal_picodvi_framebuffer_deinit(self);
297297
m_malloc_fail(self->dma_commands_len * sizeof(uint32_t));
298298
return;

0 commit comments

Comments
 (0)