--- a/sensorservices/tiltcompensationssy/src/tcstatetiltlistendata.cpp Thu Aug 19 11:09:10 2010 +0300
+++ b/sensorservices/tiltcompensationssy/src/tcstatetiltlistendata.cpp Tue Aug 31 16:29:05 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;