[riot-notifications] [RIOT-OS/RIOT] cpu/native: Allow Access to Hardware SPI Bus on Linux (#11352)

benpicco notifications at github.com
Mon Sep 30 17:14:27 CEST 2019


Well the only failing unit test is `tests/driver_adt7310` where llvm rightfully complains about the use of `abs()` on a `float`.

Just piggy-back a commit that casts the argument to `int` and CI should be happy.

```patch
--- a/tests/driver_adt7310/main.c
+++ b/tests/driver_adt7310/main.c
@@ -80,7 +80,7 @@ int test_adt7310_sample_print(adt7310_t *dev)
     fractional = modff(celsius_float, &integral);
 
     printf("0x%04" PRIx16 " %7" PRId32 " mC %4d.%07u C)\n", raw, millicelsius,
-        (int)integral, abs(fractional * 10000000.f));
+        (int)integral, abs((int) (fractional * 10000000.f)));
     return 0;
```

-- 
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/11352#issuecomment-536609060
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190930/eb323ff3/attachment.htm>


More information about the notifications mailing list