sensorservices/tiltcompensationssy/src/tcstatetiltlistendata.cpp
changeset 63 09d657f1ee00
parent 54 072a9626b290
child 61 8cb079868133
--- a/sensorservices/tiltcompensationssy/src/tcstatetiltlistendata.cpp	Wed Aug 18 11:03:14 2010 +0300
+++ b/sensorservices/tiltcompensationssy/src/tcstatetiltlistendata.cpp	Thu Sep 02 21:48:26 2010 +0300
@@ -280,7 +280,6 @@
                 {
                 property.iProperty.GetValue( iHzSamplingRate );
                 INFO_1( "Sampling rate changed to: %d", iHzSamplingRate );
-                iHasChanged = ETrue;
                 HandleStateEntryL();
                 }
             break;
@@ -355,19 +354,8 @@
     if( !iTimerToSend )
         {
         iTimerToSend = CTCSendEventTimer::NewL( iHzSamplingRate, *this );
-		iTimerToSend->Start();
         }
-    else if( iHasChanged )
-        {
-        delete iTimerToSend;
-        iTimerToSend = NULL;
-        iTimerToSend = CTCSendEventTimer::NewL( iHzSamplingRate, *this );
-        iHasChanged = EFalse;
-        }
-	else
-		{
-		iTimerToSend->Start();
-		}
+	iTimerToSend->Start(iHzSamplingRate);
     }
 
 // ----------------------------------------------------------------------------------
@@ -474,7 +462,7 @@
     else
     	{
     	if( iTimerToSend )
-    		iTimerToSend->Start();
+    		iTimerToSend->Start(iHzSamplingRate);
     	}
     }
 
@@ -512,7 +500,11 @@
 // CTCStateTiltListenData::CenrepValueChanged
 // -----------------------------------------------------------------------------
 //
+#ifdef _DEBUG
 void CTCStateTiltListenData::CenrepValueChanged( TUint32 aKey, CRepository& aRepository )
+#else
+void CTCStateTiltListenData::CenrepValueChanged( TUint32 /*aKey*/, CRepository& aRepository )
+#endif
     {
     FUNC_LOG;