Added missing getter

This commit is contained in:
Gunnar Skjold
2020-08-28 17:55:07 +02:00
parent 5d47105951
commit 859220d33f
2 changed files with 15 additions and 4 deletions

View File

@@ -16,6 +16,17 @@ void HwTools::setTempSensorPin(int tempSensorPin) {
}
}
void HwTools::setTempAnalogSensorPin(int tempAnalogSensorPin) {
if(tempAnalogSensorPin != this->tempAnalogSensorPin) {
if(tempAnalogSensorPin > 0 && tempAnalogSensorPin < 40) {
this->tempAnalogSensorPin = tempAnalogSensorPin;
pinMode(tempAnalogSensorPin, INPUT);
} else {
this->tempAnalogSensorPin = 0xFF;
}
}
}
void HwTools::setVccPin(int vccPin) {
if(vccPin > 0 && vccPin < 40) {
pinMode(vccPin, INPUT);