From c6a47980eb0065dae4f35ce0beaac4c256c1b3e4 Mon Sep 17 00:00:00 2001 From: Mike Melancon Date: Thu, 26 Sep 2024 18:25:31 -0500 Subject: [PATCH] Fix for invalid control characters appearing in JSON causing the About dialog in WebUI v3 to not load --- FluidNC/src/WebUI/WifiConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FluidNC/src/WebUI/WifiConfig.cpp b/FluidNC/src/WebUI/WifiConfig.cpp index 1bb3fe086..b32d2edee 100644 --- a/FluidNC/src/WebUI/WifiConfig.cpp +++ b/FluidNC/src/WebUI/WifiConfig.cpp @@ -278,7 +278,7 @@ namespace WebUI { j.id_value_object("SSID: ", (const char*)conf.ap.ssid); j.id_value_object("Visible: ", (conf.ap.ssid_hidden == 0 ? "Yes" : "No")); j.id_value_object("Radio country set: ", - std::string("") + country.cc + " (channels " + std::to_string(country.schan) + "-" + + std::string("") + country.cc[0] + country.cc[1] + " (channels " + std::to_string(country.schan) + "-" + std::to_string((country.schan + country.nchan - 1)) + ", max power " + std::to_string(country.max_tx_power) + "dBm)");