Commit 8d3852b1 authored by Adam Wujek's avatar Adam Wujek

proto-ext-whiterabbit/wr-msg: fix order of otherNodeCalPeriod

Error introduced in:
62acc0ad proto-ext-whiterabbit/wr-msg: use ntoh* and hton* instead of get_be* and put_be*
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 8f668472
......@@ -223,10 +223,10 @@ int msg_unpack_wrsig(struct pp_instance *ppi, void *buf,
/* OtherNodeCalPeriod in a frame crosses a word boundary,
split it into two parts */
WR_DSPOR(ppi)->otherNodeCalPeriod =
ntohs(*(UInteger16 *)(buf + 60));
ntohs(*(UInteger16 *)(buf + 58));
WR_DSPOR(ppi)->otherNodeCalPeriod <<= 16;
WR_DSPOR(ppi)->otherNodeCalPeriod |=
ntohs(*(UInteger16 *)(buf + 58));
ntohs(*(UInteger16 *)(buf + 60));
pp_diag(ppi, frames, 1, "otherNodeCalPeriod 0x%x\n",
WR_DSPOR(ppi)->otherNodeCalPeriod);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment