Skip to content

Commit 7df1f38

Browse files
committed
ugfx: add gfxhalt to ssd1331 driver
1 parent d92f596 commit 7df1f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ugfx/drivers/gdisp/SSD1331/gdisp_lld_SSD1331.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static const uint8_t gray_scale_table[] = {
100100
LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
101101
g->priv = gfxAlloc(GDISP_SCREEN_HEIGHT * GDISP_SCREEN_WIDTH * 2);
102102
if (g->priv == NULL) {
103-
return FALSE;
103+
gfxHalt("GDISP SSD1331: Failed to allocate private memory");
104104
}
105105

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

0 commit comments

Comments
 (0)