Browse Source

sns/event: event is a boolean value

mcspr-patch-1
Maxim Prokhorov 4 years ago
parent
commit
b0bb384bcd
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      code/espurna/sensor.cpp

+ 1
- 0
code/espurna/sensor.cpp View File

@ -536,6 +536,7 @@ BaseFilter* _magnitudeCreateFilter(unsigned char type, size_t size) {
case MAGNITUDE_ENERGY_DELTA: case MAGNITUDE_ENERGY_DELTA:
filter = new SumFilter(); filter = new SumFilter();
break; break;
case MAGNITUDE_EVENT:
case MAGNITUDE_DIGITAL: case MAGNITUDE_DIGITAL:
filter = new MaxFilter(); filter = new MaxFilter();
break; break;


Loading…
Cancel
Save