mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
dump telegrams doesnt need to show the cmd
This commit is contained in:
@@ -1428,7 +1428,7 @@ void EMSdevice::dump_value_info() {
|
|||||||
#if defined(EMSESP_STANDALONE)
|
#if defined(EMSESP_STANDALONE)
|
||||||
void EMSdevice::dump_telegram_info(std::vector<TelegramFunctionDump> & telegram_functions_dump) {
|
void EMSdevice::dump_telegram_info(std::vector<TelegramFunctionDump> & telegram_functions_dump) {
|
||||||
for (auto & tf : telegram_functions_) {
|
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
|
#endif
|
||||||
|
|||||||
@@ -471,12 +471,10 @@ class EMSdevice {
|
|||||||
uint16_t type_id_;
|
uint16_t type_id_;
|
||||||
const char * name_;
|
const char * name_;
|
||||||
bool fetch_;
|
bool fetch_;
|
||||||
bool cmd_;
|
TelegramFunctionDump(uint16_t type_id, const char * name, bool fetch)
|
||||||
TelegramFunctionDump(uint16_t type_id, const char * name, bool fetch, bool cmd)
|
|
||||||
: type_id_(type_id)
|
: type_id_(type_id)
|
||||||
, name_(name)
|
, name_(name)
|
||||||
, fetch_(fetch)
|
, fetch_(fetch) {
|
||||||
, cmd_(cmd) {
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
void dump_telegram_info(std::vector<TelegramFunctionDump> & telegram_functions_dump);
|
void dump_telegram_info(std::vector<TelegramFunctionDump> & telegram_functions_dump);
|
||||||
|
|||||||
@@ -429,8 +429,6 @@ void EMSESP::dump_all_telegrams(uuid::console::Shell & shell) {
|
|||||||
Serial.print(tf.name_);
|
Serial.print(tf.name_);
|
||||||
Serial.print(',');
|
Serial.print(',');
|
||||||
Serial.print(tf.fetch_ ? "fetched" : " ");
|
Serial.print(tf.fetch_ ? "fetched" : " ");
|
||||||
Serial.print(',');
|
|
||||||
Serial.print(tf.cmd_ ? "cmd" : " ");
|
|
||||||
Serial.println();
|
Serial.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user