fix bug in sensor/indicator encode macro
Signed-off-by: Mike Day <ncmike@ncultra.org>