Skip to content
Commit 1ac90bf4 authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Anas Nashif
Browse files

samples: mesh_badge: fix unknown sensor status message



When the value of an unknown sensor property ID is requested, the length
field should represent the value of zero, as explain in the comment in
sens_unknown_fill. However the marshalled representation of a zero
length is wrong in the code. The format A uses a 1-based uint4 length
value, so the range 0x0–0xF represents the range 1-16. The zero length
is represented by format B using the 0x7F value.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 16d8a492
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment