mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 18:04:19 -07:00
tweaks
This commit is contained in:
@@ -105,6 +105,7 @@ class ProtoVarInt {
|
||||
|
||||
/// Parse a varint from buffer. consumed must be a valid pointer (not null).
|
||||
static optional<ProtoVarInt> parse(const uint8_t *buffer, uint32_t len, uint32_t *consumed) {
|
||||
assert(consumed != nullptr);
|
||||
if (len == 0)
|
||||
return {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user