diff --git a/drivers/focuser/moonlite.cpp b/drivers/focuser/moonlite.cpp index c6c67bd41e..f12274289b 100644 --- a/drivers/focuser/moonlite.cpp +++ b/drivers/focuser/moonlite.cpp @@ -518,10 +518,10 @@ void MoonLite::TimerHit() rc = readTemperature(); if (rc) { - if (fabs(lastTemperature - TemperatureNP[0].value) >= 0.5) + if (std::abs(lastTemperature - TemperatureNP[0].getValue()) >= 0.5) { TemperatureNP.apply(); - lastTemperature = static_cast(TemperatureNP[0].value); + lastTemperature = static_cast(TemperatureNP[0].getValue()); } }