[riot-notifications] [RIOT-OS/RIOT] drivers/shtc1: Initial support for the SHTC1 temperature and humidity sensor (#7866)

Kees Bakker notifications at github.com
Thu Jan 31 21:34:30 CET 2019

BTW Notice that this prototype is most likely a programming mistake.

    int8_t shtc1_measure(shtc1_t* const dev)

The dev object is not `const`, only the pointer is. And inside the function that has hardly any value. Except maybe for a compiler to know that you are not going to change the *pointer*. You can still write struct members.

I'm not sure if that paradigm comes from @Josar or @shr70 but I really think we should change it. I've seen this in sht2x as well.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190131/e16bab3a/attachment-0001.html>

More information about the notifications mailing list