[riot-notifications] [RIOT-OS/RIOT] drivers/lm75: driver for the lm75 sensor and derivatives (#16678)

benpicco notifications at github.com
Mon Jul 26 17:03:51 CEST 2021


@benpicco commented on this pull request.



> +        }
+        else printf("%d.%dºC\n", temp / dev->lm75_params.res.temp_mult, temp % dev->lm75_params.res.temp_mult);
+        lm75_check_temperature(dev, temp, threshold, hysteresis);
+        lm75_low_power_mode(dev, 2000); /* testing in low power mode */
+        /* xtimer_msleep(1000); testing in continuous mode */
+    }
+
+    return 0;
+}
+
+static void __irq_os_cb(void *arg)
+{
+    (void)arg;
+    puts("INTERRUPT");
+    LED0_ON;
+    xtimer_msleep(2000);

You can't sleep inside an interrupt 

-- 
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/16678#pullrequestreview-714958636
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210726/320a4c78/attachment.htm>


More information about the notifications mailing list