mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-08-01 09:54:28 +02:00
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
|
||||
IntegerValue *temporary = nullptr;
|
||||
float invalidValue = 0;
|
||||
int invalidValue = 0;
|
||||
switch (type) {
|
||||
case CO2:
|
||||
temporary = &_co2;
|
||||
@@ -225,7 +225,6 @@ int Measurements::get(MeasurementType type, int ch) {
|
||||
|
||||
// Define data point source
|
||||
IntegerValue *temporary = nullptr;
|
||||
float invalidValue = 0;
|
||||
switch (type) {
|
||||
case CO2:
|
||||
temporary = &_co2;
|
||||
|
Reference in New Issue
Block a user