Skip to content

Commit e3e0524

Browse files
committed
ugfx: CUBE0414: add const qualifier to ram_addr_table
1 parent 750cdc5 commit e3e0524

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/ugfx/drivers/gdisp/CUBE0414/gdisp_lld_CUBE0414.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
#include "CUBE0414.h"
4848

49-
static uint8_t init_ram_addr[64] = {
49+
static const uint8_t ram_addr_table[64] = {
5050
#ifdef CONFIG_CUBE0414_LINE_S_CURVE
5151
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x0f,
5252
0x10, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e,
@@ -81,9 +81,9 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
8181
// Initialise the board interface
8282
init_board(g);
8383

84-
// Write RAM Addr
84+
// Write RAM Addr Table
8585
write_cmd(g, CUBE0414_ADDR_WR);
86-
write_buff(g, init_ram_addr, sizeof(init_ram_addr));
86+
write_buff(g, (uint8_t *)ram_addr_table, sizeof(ram_addr_table));
8787

8888
// Refresh GRAM
8989
write_cmd(g, CUBE0414_DATA_WR);

0 commit comments

Comments
 (0)