[riot-notifications] [RIOT-OS/RIOT] tests/driver_sht2x: avoid negative number after decimal dot (#12164)

Alexandre Abadie notifications at github.com
Tue Sep 3 21:26:32 CEST 2019


> There's indeed a problem, the formatter for temperature should be %d.%02d (also tested this locally).

well, in fact it's not needed since the number after decimal dot is divided by 10. But this division could be removed if you use `%d.%02d`. This should be better.
I checked and bmx280 driver application has the same behaviour.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12164#issuecomment-527603579
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190903/5b8e69a2/attachment.htm>


More information about the notifications mailing list