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:
@@ -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