alomast all works only one led is still lid up after net await goas away

This commit is contained in:
2026-01-29 12:08:01 +01:00
parent e64a36e178
commit 2e6aa91f01
+4 -10
View File
@@ -46,13 +46,6 @@ void addNewTextNode
text_nodes[i].pos_x = pos_x;
text_nodes[i].pos_y = pos_y;
const unsigned short POS_X2 = getTextNodeX2(&(text_nodes)[i]);
if (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;
text_nodes[i].characterSize.width = is_small ? SMALL_TEXT_WIDTH : MEDIUM_TEXT_WIDTH;
text_nodes[i].character_count = text_length;
@@ -71,10 +64,11 @@ void drawTextNodes(bool reset_cursor = true)
{
if (!text_nodes[i].is_deleted)
{
const unsigned short POS_X2 = getTextNodeX2(&text_nodes[i]);
if (POS_X2 > PANEL_MAX_X)
const unsigned short POS_X2 = getTextNodeX2(&(text_nodes)[i]);
if (POS_X2 > PANEL_MAX_X)
{
text_nodes[i].pos_x = POS_X2 - PANEL_MAX_X;
text_nodes[i].pos_x -= POS_X2 - PANEL_MAX_X;
}
if (reset_cursor)