Fixed light, proximity and pressure problem.

Menaka Madushanka 9 years ago
parent cdd0716930
commit 897b914522

@ -308,17 +308,17 @@ public class AndroidSenseService {
case 5: case 5:
streamDef = LIGHT_STREAM_DEFINITION; streamDef = LIGHT_STREAM_DEFINITION;
sensorName = SENSOR_LIGHT; sensorName = SENSOR_LIGHT;
payloadData = new Float[]{Float.parseFloat(sensor.value)}; payloadData = new Float[]{Float.parseFloat(valuesM[0])};
break; break;
case 6: case 6:
streamDef = PRESSURE_STREAM_DEFINITION; streamDef = PRESSURE_STREAM_DEFINITION;
sensorName = SENSOR_PRESSURE; sensorName = SENSOR_PRESSURE;
payloadData = new Float[]{Float.parseFloat(sensor.value)}; payloadData = new Float[]{Float.parseFloat(valuesM[0])};
break; break;
case 8: case 8:
streamDef = PROXIMITY_STREAM_DEFINITION; streamDef = PROXIMITY_STREAM_DEFINITION;
sensorName = SENSOR_PROXIMITY; sensorName = SENSOR_PROXIMITY;
payloadData = new Float[]{Float.parseFloat(sensor.value)}; payloadData = new Float[]{Float.parseFloat(valuesM[0])};
break; break;
case 9: case 9:
streamDef = GRAVITY_STREAM_DEFINITION; streamDef = GRAVITY_STREAM_DEFINITION;

Loading…
Cancel
Save