Commit 3a0e3a74 authored by Matti Lehtimäki's avatar Matti Lehtimäki

[filters] Fix uninitialized variable in declination filter. Contributes to JB#45163

parent 6c2b5c22
......@@ -35,7 +35,8 @@ const char* DeclinationFilter::declinationKey = "/system/osso/location/settings/
DeclinationFilter::DeclinationFilter() :
Filter<CompassData, DeclinationFilter, CompassData>(this, &DeclinationFilter::correct),
declinationCorrection_(0)
declinationCorrection_(0),
lastUpdate_(0)
{
updateInterval_ = SensorFrameworkConfig::configuration()->value<quint64>("compass/declination_update_interval", 1000 * 60 * 60) * 1000;
loadSettings();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment