Skip to content

Commit

Permalink
Merge branch 'master' into fix-259
Browse files Browse the repository at this point in the history
  • Loading branch information
cguimaraes authored Oct 12, 2023
2 parents 0c24769 + 718d4c5 commit 0c9a871
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/protocol/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ int8_t _z_uint8_decode(uint8_t *u8, _z_zbuf_t *zbf) {
int8_t _z_uint16_encode(_z_wbuf_t *wbf, uint16_t u16) {
int8_t ret = _Z_RES_OK;

ret |= _z_wbuf_write(wbf, ((u16 >> 8) & 0xFF));
ret |= _z_wbuf_write(wbf, (u16 & 0xFF));
ret |= _z_wbuf_write(wbf, ((u16 >> 8) & 0xFF));

return ret;
}
Expand All @@ -163,9 +163,9 @@ int8_t _z_uint16_decode(uint16_t *u16, _z_zbuf_t *zbf) {

uint8_t u8;
ret |= _z_uint8_decode(&u8, zbf);
*u16 |= u8 << 8;
ret |= _z_uint8_decode(&u8, zbf);
*u16 |= u8;
ret |= _z_uint8_decode(&u8, zbf);
*u16 |= u8 << 8;

return ret;
}
Expand Down
4 changes: 2 additions & 2 deletions zenohpico.pc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
prefix=/var/empty/local
prefix=/var/local

Name: zenohpico
Description:
URL:
Version: 0.11.20231012dev
Cflags: -I${prefix}/include
Libs: -L${prefix}/lib64 -lzenohpico
Libs: -L${prefix}/lib -lzenohpico

0 comments on commit 0c9a871

Please sign in to comment.