diff --git a/BaseMQ.cpp b/BaseMQ.cpp index 5c91101..7a7f0c7 100644 --- a/BaseMQ.cpp +++ b/BaseMQ.cpp @@ -67,7 +67,7 @@ float BaseMQ::readRs() { int readScaled(float a, float b) { float ratio = readRatio(); - return pow(M_E, (log(ratio)-b)/a); + return exp((log(ratio)-b)/a); } float BaseMQ::getRo() {