Reference Page - ZUNO_SENSOR_MULTILEVEL() - Incorrect?
Posted: 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;
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:
Lower down, the example:
seems to be correct. Have I read this wrong ?
Code: Select all
ZUNO_SENSOR_MULTILEVEL(type, scale_size_precision, getter)
Code: Select all
ZUNO_SENSOR_MULTILEVEL(type, scale, size, precision, getter)
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)