Serialization example on page 32, section 3.7.5

It seems to me that the serialization example on page 32 in section 3.7.5 contains an error. The value of ‘first’ is +48858, it’s binary representation is 1011_1110_1101_1010. But because it’s declared as ‘truncated uint12’ it should be shortened to 1110_1101_1010. So I assume that lower 4 bits of ‘byte 1’ in searilization should be ‘1110’ but there is ‘1101’.

Do I misunderstand something?

Regards,
Alex

1 Like

I think you are right. @scottdixon can you check this, please?

yep. I’ll look in a bit.

Yep. fixing this now. Thanks!