From 37859b0efc860e33b5b58bbf596f52dca03a009b Mon Sep 17 00:00:00 2001 From: forntoh Date: Mon, 5 Feb 2024 00:11:16 +0100 Subject: [PATCH] BugFix - Charset Input value copied to all Input items onscreen --- src/LcdMenu.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/LcdMenu.h b/src/LcdMenu.h index 34316e93..ee76b250 100644 --- a/src/LcdMenu.h +++ b/src/LcdMenu.h @@ -746,15 +746,15 @@ class LcdMenu { // update text // if (blinkerPosition < ub) { - static char start[10]; - static char end[10]; - static char* joined = new char[maxCols - lb]; + char start[10]; + char end[10]; + char* joined = new char[maxCols - lb]; substring(item->getValue(), 0, blinkerPosition - lb, start); substring(item->getValue(), blinkerPosition + 1 - lb, length, end); concat(start, character, end, joined); item->setValue(joined); } else { - static char* buf = new char[length + 2]; + char* buf = new char[length + 2]; concat(item->getValue(), character, buf); item->setValue(buf); }