We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d92f596 commit 7df1f38Copy full SHA for 7df1f38
components/ugfx/drivers/gdisp/SSD1331/gdisp_lld_SSD1331.c
@@ -100,7 +100,7 @@ static const uint8_t gray_scale_table[] = {
100
LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
101
g->priv = gfxAlloc(GDISP_SCREEN_HEIGHT * GDISP_SCREEN_WIDTH * 2);
102
if (g->priv == NULL) {
103
- return FALSE;
+ gfxHalt("GDISP SSD1331: Failed to allocate private memory");
104
}
105
106
for(int i=0; i < GDISP_SCREEN_HEIGHT * GDISP_SCREEN_WIDTH * 2; i++) {
0 commit comments