Skip to content

Commit

Permalink
Compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Dec 9, 2024
1 parent 45b7b0a commit 0efe611
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/protocol/codec/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// ZettaScale Zenoh Team, <[email protected]>
//

#include <inttypes.h>
#include <stdint.h>
#include <string.h>

Expand Down Expand Up @@ -108,7 +109,7 @@ size_t _z_serial_msg_deserialize(const uint8_t *src, size_t src_len, uint8_t *ds

uint32_t computed_crc = _z_crc32(dst, wire_size);
if (received_crc != computed_crc) {
_Z_DEBUG("CRC mismatch. Received: 0x%08lX, Computed: 0x%08lX", received_crc, computed_crc);
_Z_DEBUG("CRC mismatch. Received: 0x%08" PRIu32 ", Computed: 0x%08" PRIu32, received_crc, computed_crc);
return SIZE_MAX;
}

Expand Down
3 changes: 3 additions & 0 deletions src/system/common/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// ZettaScale Zenoh Team, <[email protected]>
//

#if Z_FEATURE_LINK_SERIAL == 1

#include "zenoh-pico/protocol/definitions/serial.h"

#include <stdint.h>
Expand Down Expand Up @@ -78,3 +80,4 @@ size_t _z_read_exact_serial(const _z_sys_net_socket_t sock, uint8_t *ptr, size_t

return n;
}
#endif // Z_FEATURE_LINK_SERIAL == 1

0 comments on commit 0efe611

Please sign in to comment.