Skip to content

Commit 6ae08ea

Browse files
maass-hamburgdpgeorge
authored andcommitted
zephyr/modzsensor: Add additional sensor type constants.
Add additional sensor type constants. Commonly used by power and current measurement sensors. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent 05c2f88 commit 6ae08ea

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ports/zephyr/modzsensor.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ static const mp_rom_map_elem_t mp_module_zsensor_globals_table[] = {
212212
C(VOC),
213213
C(GAS_RES),
214214
C(VOLTAGE),
215+
C(VSHUNT),
216+
C(CURRENT),
217+
C(POWER),
218+
C(RESISTANCE),
215219
#undef C
216220
#define C(name) { MP_ROM_QSTR(MP_QSTR_ATTR_##name), MP_ROM_INT(SENSOR_ATTR_##name) }
217221
C(SAMPLING_FREQUENCY),

0 commit comments

Comments
 (0)