Heavily inspired from the work done here.
I observed that the C implementation is similar to the one for temperature and this conversion should be compatible.
One thing to note is that in the C files the humidity is represented as an unsigned int, whereas in my conversion I left it as i32.
Heavily inspired from the work done here. I observed that the C implementation is similar to the one for temperature and this conversion should be compatible.
One thing to note is that in the C files the humidity is represented as an
unsigned int
, whereas in my conversion I left it asi32
.