mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
add test to change locale
This commit is contained in:
@@ -307,7 +307,15 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
|
|||||||
}
|
}
|
||||||
shell.printfln("Testing Adding a device (product_id %d), with all values...", id2);
|
shell.printfln("Testing Adding a device (product_id %d), with all values...", id2);
|
||||||
test("add", id1, id2);
|
test("add", id1, id2);
|
||||||
shell.invoke_command("show values");
|
shell.invoke_command("show devices");
|
||||||
|
ok = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// set the language
|
||||||
|
if (command == "locale") {
|
||||||
|
shell.printfln("Testing setting locale to %s", id1_s.c_str());
|
||||||
|
EMSESP::system_.locale(id1_s.c_str());
|
||||||
|
shell.invoke_command("show");
|
||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user