equal
deleted
inserted
replaced
144 JELOG2(ESensor); |
144 JELOG2(ESensor); |
145 __ASSERT_DEBUG(iData != NULL, User::Invariant()); |
145 __ASSERT_DEBUG(iData != NULL, User::Invariant()); |
146 SensorData* data = iData[ KNISensorChannel ]; |
146 SensorData* data = iData[ KNISensorChannel ]; |
147 |
147 |
148 TTime currentTime; |
148 TTime currentTime; |
149 if (data->iTimeStamps || (iBufferingPeriod > 0)) |
149 |
150 { |
150 if ((data->iTimeStampsIncluded) || (iBufferingPeriod > 0)) |
151 currentTime.UniversalTime(); |
|
152 if (iStartTime == KErrNotFound) |
|
153 { |
151 { |
154 iStartTime = currentTime; |
152 currentTime.UniversalTime(); |
|
153 if (iStartTime == KErrNotFound) |
|
154 { |
|
155 iStartTime = currentTime; |
|
156 } |
155 } |
157 } |
156 } |
158 |
157 |
|
158 // P&S sensors are assumed to have one channel only |
159 // P&S sensors are assumed to have one channel only |
159 TInt interpretedValue = InterpretValue(aLevel); |
160 TInt interpretedValue = InterpretValue(aLevel); |
160 |
161 |
161 // Negative values are error codes and therefore marked |
162 // Negative values are error codes and therefore marked |
162 // as invalid. Returned value for invalid values is zero. |
163 // as invalid. Returned value for invalid values is zero. |