1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-15 14:25:45 +00:00

Only compile protobuf dumping when very verbose logging is enabled (#2139)

This commit is contained in:
Oxan van Leeuwen
2021-08-09 22:32:06 +02:00
committed by GitHub
parent ea4a458214
commit 926bcc71ae
6 changed files with 364 additions and 1 deletions

View File

@@ -80,11 +80,13 @@ void ProtoMessage::decode(const uint8_t *buffer, size_t length) {
}
}
#ifdef HAS_PROTO_MESSAGE_DUMP
std::string ProtoMessage::dump() const {
std::string out;
this->dump_to(out);
return out;
}
#endif
} // namespace api
} // namespace esphome