forked from airgradienthq/arduino
Fix var type
This commit is contained in:
@ -57,7 +57,7 @@ bool Measurements::update(MeasurementType type, int val, int ch) {
|
|||||||
|
|
||||||
// Define data point source
|
// Define data point source
|
||||||
IntegerValue *temporary = nullptr;
|
IntegerValue *temporary = nullptr;
|
||||||
float invalidValue = 0;
|
int invalidValue = 0;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case CO2:
|
case CO2:
|
||||||
temporary = &_co2;
|
temporary = &_co2;
|
||||||
@ -225,7 +225,6 @@ int Measurements::get(MeasurementType type, int ch) {
|
|||||||
|
|
||||||
// Define data point source
|
// Define data point source
|
||||||
IntegerValue *temporary = nullptr;
|
IntegerValue *temporary = nullptr;
|
||||||
float invalidValue = 0;
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case CO2:
|
case CO2:
|
||||||
temporary = &_co2;
|
temporary = &_co2;
|
||||||
|
Reference in New Issue
Block a user