Skip to content

Commit

Permalink
Zero
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Jan 25, 2024
1 parent 89f14db commit 4adc564
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/meshtastic-pb.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ size_t pb_encode_to_bytes(uint8_t *destbuf, size_t destbufsize, const pb_msgdesc
pb_ostream_t stream = pb_ostream_from_buffer(destbuf, destbufsize);
if (!pb_encode(&stream, fields, src_struct)) {
Serial.println("Panic: can't encode protobuf");
return 0;
} else {
return stream.bytes_written;
}
Expand Down

0 comments on commit 4adc564

Please sign in to comment.