Skip to content

Commit 6f9c16d

Browse files
committed
ugfx: add gfxhalt to ssd1351 driver
1 parent 7df1f38 commit 6f9c16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ugfx/drivers/gdisp/SSD1351/gdisp_lld_SSD1351.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static const uint8_t gray_scale_table[] = {
7171
LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
7272
g->priv = gfxAlloc(GDISP_SCREEN_HEIGHT * GDISP_SCREEN_WIDTH * 2);
7373
if (g->priv == NULL) {
74-
return FALSE;
74+
gfxHalt("GDISP SSD1351: Failed to allocate private memory");
7575
}
7676

7777
for(int i=0; i < GDISP_SCREEN_HEIGHT * GDISP_SCREEN_WIDTH * 2; i++) {

0 commit comments

Comments
 (0)