mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add missing board profiles
This commit is contained in:
@@ -271,7 +271,8 @@ static void setup_commands(std::shared_ptr<Commands> & commands) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
commands->add_command(ShellContext::MAIN,
|
commands->add_command(
|
||||||
|
ShellContext::MAIN,
|
||||||
CommandFlags::ADMIN,
|
CommandFlags::ADMIN,
|
||||||
string_vector{F_(set), F_(board_profile)},
|
string_vector{F_(set), F_(board_profile)},
|
||||||
string_vector{F_(name_mandatory), F_(nvs_optional)},
|
string_vector{F_(name_mandatory), F_(nvs_optional)},
|
||||||
@@ -279,7 +280,7 @@ static void setup_commands(std::shared_ptr<Commands> & commands) {
|
|||||||
std::vector<int8_t> data; // led, dallas, rx, tx, button, phy_type, eth_power, eth_phy_addr, eth_clock_mode
|
std::vector<int8_t> data; // led, dallas, rx, tx, button, phy_type, eth_power, eth_phy_addr, eth_clock_mode
|
||||||
std::string board_profile = Helpers::toUpper(arguments.front());
|
std::string board_profile = Helpers::toUpper(arguments.front());
|
||||||
if (!to_app(shell).system_.load_board_profile(data, board_profile)) {
|
if (!to_app(shell).system_.load_board_profile(data, board_profile)) {
|
||||||
shell.println("Invalid board profile (S32, E32, E32V2, MH-ET, NODEMCU, OLIMEX, OLIMEXPOE, C3MINI, S2MINI, S3MINI, CUSTOM)");
|
shell.println("Invalid board profile (S32, E32, E32V2, MH-ET, NODEMCU, LOLIN, OLIMEX, OLIMEXPOE, C3MINI, S2MINI, S3MINI, S32S3, CUSTOM)");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (arguments.size() == 2 && Helpers::toLower(arguments.back()) == "nvs") {
|
if (arguments.size() == 2 && Helpers::toLower(arguments.back()) == "nvs") {
|
||||||
|
|||||||
Reference in New Issue
Block a user