- preventing strip blinking due to usermod running
- temeperature reading with 0.5°C precision
This commit is contained in:
Blaz Kristan
2021-05-26 16:11:48 +02:00
parent 1ba70706c2
commit 6b5c2be701
5 changed files with 977 additions and 967 deletions

View File

@@ -222,9 +222,8 @@ public:
void loop()
{
// only check sensors 10x/s
unsigned long now = millis();
if (now - lastLoop < 100) return;
lastLoop = now;
if (millis() - lastLoop < 100 || strip.isUpdating()) return;
lastLoop = millis();
if (!updatePIRsensorState()) {
handleOffTimer();