dump telegrams doesnt need to show the cmd

This commit is contained in:
proddy
2024-09-17 09:31:03 +02:00
parent 6f556a9ebb
commit ade5cb79e3
3 changed files with 3 additions and 7 deletions

View File

@@ -1428,7 +1428,7 @@ void EMSdevice::dump_value_info() {
#if defined(EMSESP_STANDALONE)
void EMSdevice::dump_telegram_info(std::vector<TelegramFunctionDump> & telegram_functions_dump) {
for (auto & tf : telegram_functions_) {
telegram_functions_dump.emplace_back(tf.telegram_type_id_, tf.telegram_type_name_, tf.fetch_, tf.process_function_ != nullptr);
telegram_functions_dump.emplace_back(tf.telegram_type_id_, tf.telegram_type_name_, tf.fetch_);
}
}
#endif

View File

@@ -471,12 +471,10 @@ class EMSdevice {
uint16_t type_id_;
const char * name_;
bool fetch_;
bool cmd_;
TelegramFunctionDump(uint16_t type_id, const char * name, bool fetch, bool cmd)
TelegramFunctionDump(uint16_t type_id, const char * name, bool fetch)
: type_id_(type_id)
, name_(name)
, fetch_(fetch)
, cmd_(cmd) {
, fetch_(fetch) {
}
};
void dump_telegram_info(std::vector<TelegramFunctionDump> & telegram_functions_dump);

View File

@@ -429,8 +429,6 @@ void EMSESP::dump_all_telegrams(uuid::console::Shell & shell) {
Serial.print(tf.name_);
Serial.print(',');
Serial.print(tf.fetch_ ? "fetched" : " ");
Serial.print(',');
Serial.print(tf.cmd_ ? "cmd" : " ");
Serial.println();
}