mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
SSDP added
This commit is contained in:
@@ -12,8 +12,6 @@ class SensorConverting : public LineParsing {
|
||||
int mapping(String key, int input) {
|
||||
String map_ = jsonReadStr(configOptionJson, key + "_map");
|
||||
if (map_ != "") {
|
||||
map_.replace("map[", "");
|
||||
map_.replace("]", "");
|
||||
input = map(input,
|
||||
selectFromMarkerToMarker(map_, ",", 0).toInt(),
|
||||
selectFromMarkerToMarker(map_, ",", 1).toInt(),
|
||||
@@ -24,11 +22,11 @@ class SensorConverting : public LineParsing {
|
||||
}
|
||||
|
||||
float correction(String key, float input) {
|
||||
_c.replace("c[", "");
|
||||
_c.replace("]", "");
|
||||
float coef = _c.toFloat();
|
||||
input = input * coef;
|
||||
String corr = jsonReadStr(configOptionJson, key + "_с");
|
||||
if (corr != "") {
|
||||
float coef = corr.toFloat();
|
||||
input = input * coef;
|
||||
}
|
||||
return input;
|
||||
}
|
||||
};
|
||||
//extern SensorConverting* mySensorConverting;
|
||||
};
|
||||
Reference in New Issue
Block a user