Skip to content

Commit

Permalink
Update interface_actions.cpp
Browse files Browse the repository at this point in the history
Fix wrong obj key for dfplayer
  • Loading branch information
vortigont authored Feb 3, 2024
1 parent e7fbcc4 commit 4578070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface_actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ void getset_dfplayer_device(Interface *interf, const JsonObject *data, const cha
return;
}

JsonVariant dst = doc[T_device].isNull() ? doc.createNestedObject(T_btn_cfg) : doc[T_device];
JsonVariant dst = doc[T_device].isNull() ? doc.createNestedObject(T_device) : doc[T_device];

// copy keys to a destination object
for (JsonPair kvp : *data)
Expand Down

0 comments on commit 4578070

Please sign in to comment.