Skip to content

Commit

Permalink
fix: revert common rx function change
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jun 24, 2024
1 parent 49f661d commit e09bf69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transport/common/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@

/*------------------ Reception helper ------------------*/
size_t _z_read_stream_size(_z_zbuf_t *zbuf) {
size_t stream_size = 0;
uint8_t stream_size[_Z_MSG_LEN_ENC_SIZE];
// Read the bytes from stream
for (uint8_t i = 0; i < _Z_MSG_LEN_ENC_SIZE; i++) {
stream_size += (size_t)_z_zbuf_read(zbuf) << (8 * i);
stream_size[i] = _z_zbuf_read(zbuf);
}
return stream_size;
return _z_host_le_load16(stream_size);
}

int8_t _z_link_recv_t_msg(_z_transport_message_t *t_msg, const _z_link_t *zl) {
Expand Down

0 comments on commit e09bf69

Please sign in to comment.