javaextensions/sensor/src.s60/cacceleratorsensorrawdata.cpp
changeset 56 abc41079b313
parent 21 2a9601315dfc
equal deleted inserted replaced
50:023eef975703 56:abc41079b313
    95 {
    95 {
    96     JELOG2(ESensor);
    96     JELOG2(ESensor);
    97     TSensrvProperty property;
    97     TSensrvProperty property;
    98     TInt intValue(0);
    98     TInt intValue(0);
    99     GetProperty(aList, KSensrvPropIdScaledRange,KSensrvItemIndexNone, property);
    99     GetProperty(aList, KSensrvPropIdScaledRange,KSensrvItemIndexNone, property);
       
   100 
       
   101     if ((property.GetArrayIndex() == ESensrvArrayPropertyInfo)&&
       
   102             (property.PropertyType() == ESensrvIntProperty))
       
   103     {
       
   104         // Read index
       
   105         TInt rangeIndex = 0;
       
   106 
       
   107         // Read actual property data from array
       
   108         GetProperty(aList, KSensrvPropIdScaledRange,
       
   109                     KSensrvItemIndexNone, rangeIndex, property);
       
   110     }
       
   111 
   100     if (property.PropertyType() == ESensrvIntProperty)
   112     if (property.PropertyType() == ESensrvIntProperty)
   101     {
   113     {
   102         aPtr->Append(KMeasureRangeCount);
   114         aPtr->Append(KMeasureRangeCount);
   103         property.GetMinValue(intValue);   // min
   115         property.GetMinValue(intValue);   // min
   104         aPtr->AppendNum(intValue);
   116         aPtr->AppendNum(intValue);