Fix for JSON commands

This commit is contained in:
iranl
2024-10-22 22:53:32 +02:00
parent e25d642ad9
commit 2404e5bf31
3 changed files with 47 additions and 47 deletions

View File

@@ -3068,7 +3068,7 @@ bool WebCfgServer::processImport(PsychicRequest *request, String& message)
for(const auto& key : bytePrefs)
{
if(!doc[key].isNull() && doc[key].is<String>())
if(!doc[key].isNull() && doc[key].is<JsonVariant>())
{
String value = doc[key].as<String>();
unsigned char tmpchar[32];