Skip to content

Commit 9339478

Browse files
authored
Merge pull request #144 from e-radionicacom/hotfix
Fixed GLUT size that caused WiFi to crash.
2 parents 4abc053 + 7fa4167 commit 9339478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/boards/Inkplate10.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ bool Inkplate::begin()
141141
_partial = (uint8_t *)ps_malloc(E_INK_WIDTH * E_INK_HEIGHT / 8);
142142
_pBuffer = (uint8_t *)ps_malloc(E_INK_WIDTH * E_INK_HEIGHT / 4);
143143
DMemory4Bit = (uint8_t *)ps_malloc(E_INK_WIDTH * E_INK_HEIGHT / 2);
144-
GLUT = (uint32_t *)malloc(256 * 8 * sizeof(uint32_t));
145-
GLUT2 = (uint32_t *)malloc(256 * 8 * sizeof(uint32_t));
144+
GLUT = (uint32_t *)malloc(256 * 9 * sizeof(uint32_t));
145+
GLUT2 = (uint32_t *)malloc(256 * 9 * sizeof(uint32_t));
146146
if (DMemoryNew == NULL || _partial == NULL || _pBuffer == NULL || DMemory4Bit == NULL || GLUT == NULL ||
147147
GLUT2 == NULL)
148148
{

0 commit comments

Comments
 (0)