Reference Page - ZUNO_SENSOR_MULTILEVEL() - Incorrect?

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
DaveDotNet
Posts: 7
Joined: 05 Sep 2017 23:15

Reference Page - ZUNO_SENSOR_MULTILEVEL() - Incorrect?

Post by DaveDotNet » 30 Jun 2018 11:18

In looking at the reference page for ZUNO_SENSOR_MULTILEVEL(), I'm wondering if the top section is wrong. It says the syntax is;

Code: Select all

ZUNO_SENSOR_MULTILEVEL(type, scale_size_precision, getter)
but, ZUNO_SENSOR_MULTILEVEL is a macro that takes 5 parameters. The description also doesn't match as it suggests packing, but the macro already does that by leveraging SENSOR_MULTILEVEL_PROPERTIES_COMBINER(). It should probably look like this:

Code: Select all

ZUNO_SENSOR_MULTILEVEL(type, scale, size, precision, getter)
Lower down, the example:

Code: Select all

ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_TEMPERATURE, SENSOR_MULTILEVEL_SCALE_CELSIUS, SENSOR_MULTILEVEL_SIZE_ONE_BYTE, SENSOR_MULTILEVEL_PRECISION_ZERO_DECIMALS, GETTER)
seems to be correct. Have I read this wrong ?

p0lyg0n1
Posts: 160
Joined: 04 Aug 2016 07:14

Re: Reference Page - ZUNO_SENSOR_MULTILEVEL() - Incorrect?

Post by p0lyg0n1 » 30 Jun 2018 14:45

Hi,
The right one is from header:

Code: Select all

#define ZUNO_SENSOR_MULTILEVEL(TYPE, SCALE, SIZE, PRECISION, GETTER) 						
You are right!
We'll update it soon. Thank you. The reference is for old version, before we add a SENSOR_MULTILEVEL_PROPERTIES_COMBINER() macro.

Alex.


Post Reply