mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-03-15 05:17:30 +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
|
||||
if(nameLectureRequeired == "")
|
||||
{
|
||||
//Set default
|
||||
setDefaultGas();
|
||||
//Put the default into variable internally used
|
||||
nameLectureRequeired = _nameLectureRequeired;
|
||||
}
|
||||
|
||||
@ -106,7 +109,7 @@ void MQUnifiedsensor::setSensorCharacteristics(String nameLectureRequeired, bool
|
||||
Serial.println("Busqueda dinamica de los indices");
|
||||
}
|
||||
for (int i=0; i<sizeof(_MQ); i++) {
|
||||
if (nameLectureRequeired = _MQ[i]) { //modified here
|
||||
if (nameLectureRequeired == _MQ[i]) { //modified here
|
||||
_lecturePosInArray = i;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user