Open simonsdialogs opened 4 months ago
Hello, does anybody get this spiethconfig working?
I think simonsdialogs means this:
if (result.count("s")) { miso_pin = result["s"].as
if (result.count("i")) { mosi_pin = result["i"].as
if (result.count("c")) { sck_pin = result["c"].as
if (result.count("e")) { cs_pin = result["e"].as
if (result.count("t")) { int_pin = result["t"].as
But only with this the spiethconfig don't work. It always breaks on the fouth value "cs_pin".
I made some tests (but i am not good in C coding). At the end i sort this 5 values in an other way and the error stays at the fourth value. That mans that is not a problem from the value "cs_pin", it is only the position.
Has anybody an idea? Is that a bug in the ESP32Console library?
the function doesn't work because the variable is incorrectly assigned, the result is always written to miso_pin rather than to the correct variable.