Browse Source

Do not report sensor data if no magnitudes

fastled
Xose Pérez 7 years ago
parent
commit
b613996461
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      code/espurna/sensor.ino

+ 2
- 0
code/espurna/sensor.ino View File

@ -590,6 +590,8 @@ void sensorLoop() {
static unsigned long last_update = 0;
static unsigned long report_count = 0;
if (_magnitudes.size() == 0) return;
// Tick hook
_sensorTick();


Loading…
Cancel
Save