replace return value to 'unsigned long' since all the functions return that type, not 'int' (type size and signedness mismatch)

This commit is contained in:
CAHEK7 2016-08-26 14:26:07 +03:00
parent d948cdb265
commit 7881a1c58f
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ float BaseMQ::readRs() {
return rs;
}
int readScaled(float a, float b) {
unsigned long readScaled(float a, float b) {
float ratio = readRatio();
return exp((log(ratio)-b)/a);
}

View File

@ -31,7 +31,7 @@ protected:
uint8_t _pin;
uint8_t _pinHeater;
float readRs();
int readScaled(float a, float b);
unsigned long readScaled(float a, float b);
float calculateResistance(int rawAdc);
virtual float getRoInCleanAir() const = 0;
virtual int getRL() const = 0;