mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
minor text changes
This commit is contained in:
@@ -363,7 +363,7 @@ void Command::show_devices(uuid::console::Shell & shell) {
|
||||
// output list of all commands to console
|
||||
// calls show with verbose mode set
|
||||
void Command::show_all(uuid::console::Shell & shell) {
|
||||
shell.println(F("Available commands: "));
|
||||
shell.println(F("Available commands (* = need authorization): "));
|
||||
|
||||
// show system first
|
||||
shell.print(COLOR_BOLD_ON);
|
||||
|
||||
@@ -126,10 +126,12 @@ bool System::command_publish(const char * value, const int8_t id) {
|
||||
bool System::command_syslog_level(const char * value, const int8_t id) {
|
||||
uint8_t s = 0xff;
|
||||
if (Helpers::value2enum(value, s, FL_(enum_syslog_level))) {
|
||||
EMSESP::webSettingsService.update([&](WebSettings & settings) {
|
||||
settings.syslog_level = (int8_t)s - 1;
|
||||
return StateUpdateResult::CHANGED;
|
||||
}, "local");
|
||||
EMSESP::webSettingsService.update(
|
||||
[&](WebSettings & settings) {
|
||||
settings.syslog_level = (int8_t)s - 1;
|
||||
return StateUpdateResult::CHANGED;
|
||||
},
|
||||
"local");
|
||||
EMSESP::system_.syslog_start();
|
||||
return true;
|
||||
}
|
||||
@@ -655,10 +657,9 @@ void System::commands_init() {
|
||||
#if defined(EMSESP_DEBUG)
|
||||
Command::add(EMSdevice::DeviceType::SYSTEM, F("test"), System::command_test, F("run tests"));
|
||||
#endif
|
||||
Command::add(EMSdevice::DeviceType::SYSTEM, F_(watch), System::command_watch, F("watching telegrams"), CommandFlag::ADMIN_ONLY);
|
||||
Command::add(EMSdevice::DeviceType::SYSTEM, F_(watch), System::command_watch, F("watch incoming telegrams"), CommandFlag::ADMIN_ONLY);
|
||||
Command::add(EMSdevice::DeviceType::SYSTEM, F_(syslog_level), System::command_syslog_level, F("set syslog level"), CommandFlag::ADMIN_ONLY);
|
||||
}
|
||||
|
||||
// flashes the LED
|
||||
void System::led_monitor() {
|
||||
if (!led_gpio_) {
|
||||
|
||||
Reference in New Issue
Block a user