From 0edafd918c968bde3bd6b0dac7e09edd3761b7b3 Mon Sep 17 00:00:00 2001 From: gitProtogen Date: Thu, 29 Jan 2026 11:22:59 +0100 Subject: [PATCH] net await now doas not display --- ledy.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ledy.ino b/ledy.ino index a8f62ac..f0ad1d3 100644 --- a/ledy.ino +++ b/ledy.ino @@ -19,12 +19,12 @@ unsigned short ever_created_text_nodes = 0; unsigned short getTextNodeY2(TextNode *node) { - return node.pos_y + node.characterSize.height - 1; + return node->pos_y + node->characterSize.height - 1; } unsigned short getTextNodeX2(TextNode *node) { - return node.pos_x + node.characterSize.width * node.character_count + node.character_count - 1; + return node->pos_x + node->characterSize.width * node->character_count + node->character_count - 1; } void addNewTextNode @@ -45,11 +45,11 @@ void addNewTextNode text_nodes[i].pos_x = pos_x; text_nodes[i].pos_y = pos_y; - const unsigned short = getTextNodeX2(&(text_nodes)[i]); + const unsigned short pos_x2 = getTextNodeX2(&(text_nodes)[i]); if (pos_x2 > PANEL_MAX_X) { - text_node[i].pos_x -= pos_x2 - PANEL_MAX_X; + text_nodes[i].pos_x -= pos_x2 - PANEL_MAX_X; } text_nodes[i].characterSize.height = is_small ? SMALL_TEXT_HEIGHT : MEDIUM_TEXT_HEIGHT;