minor text changes

This commit is contained in:
proddy
2021-08-26 10:42:34 +02:00
parent 77d559ac8c
commit 7529f3a73e
2 changed files with 8 additions and 7 deletions

View File

@@ -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);

View File

@@ -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) {
EMSESP::webSettingsService.update(
[&](WebSettings & settings) {
settings.syslog_level = (int8_t)s - 1;
return StateUpdateResult::CHANGED;
}, "local");
},
"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_) {