mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-03-25 10:10:01 +03:00
Slope and b point OK :) - Miguel is happy
This commit is contained in:
parent
66fc0dedb5
commit
2e1291182b
@ -97,6 +97,9 @@ void MQUnifiedsensor::setSensorCharacteristics(String nameLectureRequeired, bool
|
|||||||
//Defaults index
|
//Defaults index
|
||||||
if(nameLectureRequeired == "")
|
if(nameLectureRequeired == "")
|
||||||
{
|
{
|
||||||
|
//Set default
|
||||||
|
setDefaultGas();
|
||||||
|
//Put the default into variable internally used
|
||||||
nameLectureRequeired = _nameLectureRequeired;
|
nameLectureRequeired = _nameLectureRequeired;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,7 +109,7 @@ void MQUnifiedsensor::setSensorCharacteristics(String nameLectureRequeired, bool
|
|||||||
Serial.println("Busqueda dinamica de los indices");
|
Serial.println("Busqueda dinamica de los indices");
|
||||||
}
|
}
|
||||||
for (int i=0; i<sizeof(_MQ); i++) {
|
for (int i=0; i<sizeof(_MQ); i++) {
|
||||||
if (nameLectureRequeired = _MQ[i]) { //modified here
|
if (nameLectureRequeired == _MQ[i]) { //modified here
|
||||||
_lecturePosInArray = i;
|
_lecturePosInArray = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user