mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
remove is_received from dump
This commit is contained in:
@@ -1380,7 +1380,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.received_, tf.process_function_ != nullptr);
|
||||
telegram_functions_dump.emplace_back(tf.telegram_type_id_, tf.telegram_type_name_, tf.fetch_, tf.process_function_ != nullptr);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -461,13 +461,11 @@ class EMSdevice {
|
||||
uint16_t type_id_;
|
||||
const char * name_;
|
||||
bool fetch_;
|
||||
bool received_;
|
||||
bool cmd_;
|
||||
TelegramFunctionDump(uint16_t type_id, const char * name, bool fetch, bool received, bool cmd)
|
||||
TelegramFunctionDump(uint16_t type_id, const char * name, bool fetch, bool cmd)
|
||||
: type_id_(type_id)
|
||||
, name_(name)
|
||||
, fetch_(fetch)
|
||||
, received_(received)
|
||||
, cmd_(cmd) {
|
||||
}
|
||||
};
|
||||
|
||||
@@ -375,7 +375,7 @@ void EMSESP::dump_all_telegrams(uuid::console::Shell & shell) {
|
||||
|
||||
Serial.println("---- CSV START ----"); // marker use by py script
|
||||
// add header for CSV
|
||||
Serial.println("telegram_type_id,name,is_fetched,is_received,is_cmd");
|
||||
Serial.println("telegram_type_id,name,is_fetched,is_cmd");
|
||||
|
||||
for (const auto & device_class : EMSFactory::device_handlers()) {
|
||||
// go through each device type so they are sorted
|
||||
@@ -420,17 +420,14 @@ void EMSESP::dump_all_telegrams(uuid::console::Shell & shell) {
|
||||
// Use erase method to remove all the duplicates from the vector
|
||||
telegram_functions_dump.erase(it, telegram_functions_dump.end());
|
||||
|
||||
|
||||
for (const auto & tf : telegram_functions_dump) {
|
||||
Serial.printf(Helpers::hextoa(tf.type_id_, true).c_str());
|
||||
Serial.print(',');
|
||||
Serial.print(tf.name_);
|
||||
Serial.print(',');
|
||||
Serial.print(tf.fetch_ ? "fetched" : "");
|
||||
Serial.print(tf.fetch_ ? "fetched" : " ");
|
||||
Serial.print(',');
|
||||
Serial.print(tf.received_ ? "received" : "");
|
||||
Serial.print(',');
|
||||
Serial.print(tf.cmd_ ? "cmd" : "");
|
||||
Serial.print(tf.cmd_ ? "cmd" : " ");
|
||||
Serial.println();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user