mirror of
https://github.com/amperka/TroykaMQ.git
synced 2025-03-15 04:27:34 +03:00
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:
parent
d948cdb265
commit
7881a1c58f
@ -65,7 +65,7 @@ float BaseMQ::readRs() {
|
|||||||
return rs;
|
return rs;
|
||||||
}
|
}
|
||||||
|
|
||||||
int readScaled(float a, float b) {
|
unsigned long readScaled(float a, float b) {
|
||||||
float ratio = readRatio();
|
float ratio = readRatio();
|
||||||
return exp((log(ratio)-b)/a);
|
return exp((log(ratio)-b)/a);
|
||||||
}
|
}
|
||||||
|
2
BaseMQ.h
2
BaseMQ.h
@ -31,7 +31,7 @@ protected:
|
|||||||
uint8_t _pin;
|
uint8_t _pin;
|
||||||
uint8_t _pinHeater;
|
uint8_t _pinHeater;
|
||||||
float readRs();
|
float readRs();
|
||||||
int readScaled(float a, float b);
|
unsigned long readScaled(float a, float b);
|
||||||
float calculateResistance(int rawAdc);
|
float calculateResistance(int rawAdc);
|
||||||
virtual float getRoInCleanAir() const = 0;
|
virtual float getRoInCleanAir() const = 0;
|
||||||
virtual int getRL() const = 0;
|
virtual int getRL() const = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user