Skip to content
This repository was archived by the owner on Nov 18, 2023. It is now read-only.

Commit 0abe7f9

Browse files
committed
Fix compilation warning on LPC
1 parent 4dfb69a commit 0abe7f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Marlin/src/lcd/extui/dgus_reloaded/DGUSDisplay.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ bool DGUS_PopulateVP(const DGUS_Addr addr, DGUS_VP * const buffer) {
392392
const DGUS_VP *ret = vp_list;
393393

394394
do {
395-
const uint16_t addrcheck = pgm_read_word(&ret->addr);
395+
const uint16_t *paddr = (uint16_t *)(&ret->addr);
396+
const uint16_t addrcheck = pgm_read_word(paddr);
396397
if (addrcheck == 0) break;
397398
if ((DGUS_Addr)addrcheck == addr) {
398399
memcpy_P(buffer, ret, sizeof(*ret));

0 commit comments

Comments
 (0)