mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-04 03:36:32 +02:00
Ignore parameter values out of range #190
This commit is contained in:
21
src/Main/utils.h
Normal file
21
src/Main/utils.h
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef _UTILS_H_
|
||||
#define _UTILS_H_
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
class utils
|
||||
{
|
||||
private:
|
||||
/* data */
|
||||
public:
|
||||
utils(/* args */);
|
||||
~utils();
|
||||
|
||||
static float correctTemperature(float value);
|
||||
static float correctHumidity(float value);
|
||||
static int16_t correctCO2(int16_t value);
|
||||
static int correctPMS(int value);
|
||||
};
|
||||
|
||||
|
||||
#endif /** _UTILS_H_ */
|
Reference in New Issue
Block a user