Support Board
Date/Time: Fri, 23 May 2025 22:15:32 +0000
Post From: Code help, using a string instead of a constant
[2023-08-27 20:54:43] |
User431178 - Posts: 687 |
And again, the const char* DOES pick up the value of the input string as expected, but only the first time.
As I said before, const char* goes out of scope at the end of each iteration of the main loop, 100% guaranteed it is reading the value of the other inputs.The attached code works as expected (sligtly modified from what you posted), see also screenshot. |
![]() ![]() |