From 951e706feec49a4ef2821d7b2cba7b88d7c57af5 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 19 Sep 2023 16:17:21 +0200 Subject: [PATCH] add custom to "show devices" --- src/command.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index afbbe6bcc..aaeaa9034 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -574,13 +574,9 @@ bool Command::device_has_commands(const uint8_t device_type) { // list sensors and EMS devices void Command::show_devices(uuid::console::Shell & shell) { shell.printf("%s ", EMSdevice::device_type_2_device_name(EMSdevice::DeviceType::SYSTEM)); - - // if (EMSESP::webSchedulerService.has_commands()) { + shell.printf("%s ", EMSdevice::device_type_2_device_name(EMSdevice::DeviceType::CUSTOM)); shell.printf("%s ", EMSdevice::device_type_2_device_name(EMSdevice::DeviceType::SCHEDULER)); - // } - // if (EMSESP::temperaturesensor_.have_sensors()) { shell.printf("%s ", EMSdevice::device_type_2_device_name(EMSdevice::DeviceType::TEMPERATURESENSOR)); - // } if (EMSESP::analogsensor_.analog_enabled()) { shell.printf("%s ", EMSdevice::device_type_2_device_name(EMSdevice::DeviceType::ANALOGSENSOR)); }