Only compile protobuf dumping when very verbose logging is enabled (#2139)
This commit is contained in:
1 parent
ea4a458214
commit
926bcc71ae
6 files changed
+364
-1
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user