Skip to content

Commit 4adc564

Browse files
committed
Zero
1 parent 89f14db commit 4adc564

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/meshtastic-pb.h

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ size_t pb_encode_to_bytes(uint8_t *destbuf, size_t destbufsize, const pb_msgdesc
88
pb_ostream_t stream = pb_ostream_from_buffer(destbuf, destbufsize);
99
if (!pb_encode(&stream, fields, src_struct)) {
1010
Serial.println("Panic: can't encode protobuf");
11+
return 0;
1112
} else {
1213
return stream.bytes_written;
1314
}

0 commit comments

Comments
 (0)