Skip to content

Commit

Permalink
update to use array index operator notation
Browse files Browse the repository at this point in the history
  • Loading branch information
evemawrey authored May 7, 2024
1 parent 37bab06 commit c21480d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ void ConfigManager::handleAPPost() {
if (isJson) {
JsonObject obj = decodeJson(server->arg("plain"));

ssid = obj.getMember("ssid").as<String>();
password = obj.getMember("password").as<String>();
ssid = String((const char*)obj["ssid"]);
password = String((const char*)obj["password"]);
} else {
ssid = server->arg("ssid");
password = server->arg("password");
Expand Down

0 comments on commit c21480d

Please sign in to comment.