Skip to content

Commit 89f14db

Browse files
committed
Simple log
1 parent 06c8910 commit 89f14db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/meshtastic-pb.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ size_t pb_encode_to_bytes(uint8_t *destbuf, size_t destbufsize, const pb_msgdesc
77
{
88
pb_ostream_t stream = pb_ostream_from_buffer(destbuf, destbufsize);
99
if (!pb_encode(&stream, fields, src_struct)) {
10-
Serial.println("Panic: can't encode protobuf reason='%s'\n", PB_GET_ERROR(&stream));
10+
Serial.println("Panic: can't encode protobuf");
1111
} else {
1212
return stream.bytes_written;
1313
}
@@ -18,7 +18,7 @@ bool pb_decode_from_bytes(const uint8_t *srcbuf, size_t srcbufsize, const pb_msg
1818
{
1919
pb_istream_t stream = pb_istream_from_buffer(srcbuf, srcbufsize);
2020
if (!pb_decode(&stream, fields, dest_struct)) {
21-
Serial.println("Can't decode protobuf reason='%s', pb_msgdesc %p\n", PB_GET_ERROR(&stream), fields);
21+
Serial.println("Can't decode protobuf reason=");
2222
return false;
2323
} else {
2424
return true;

0 commit comments

Comments
 (0)