summaryrefslogtreecommitdiff
path: root/src/bin/eeze
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-03-27 11:57:04 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2013-03-27 11:58:52 +0000
commite12dbaeae68bedbdd38b44907885135c45d27024 (patch)
tree3caf67221abe38ed6d41a798dc98a7bb25e7f5a4 /src/bin/eeze
parent8dda0883c1835e0a2bea850bcd9ab2d66d58e665 (diff)
eeze/sensor: Use the correct data get method in the test.
Light and proximity sensors only have one data item to fetch.
Diffstat (limited to 'src/bin/eeze')
-rw-r--r--src/bin/eeze/eeze_sensor_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eeze/eeze_sensor_test.c b/src/bin/eeze/eeze_sensor_test.c
index 2c7387691e..0a1fc949ed 100644
--- a/src/bin/eeze/eeze_sensor_test.c
+++ b/src/bin/eeze/eeze_sensor_test.c
@@ -120,7 +120,7 @@ main(void)
120 sens = eeze_sensor_new(EEZE_SENSOR_TYPE_PROXIMITY); 120 sens = eeze_sensor_new(EEZE_SENSOR_TYPE_PROXIMITY);
121 if (sens) 121 if (sens)
122 { 122 {
123 if (!eeze_sensor_xyz_get(sens, &x, &y, &z)) printf("fail get xyz\n"); 123 if (!eeze_sensor_x_get(sens, &x)) printf("fail get x\n");
124 if (!eeze_sensor_accuracy_get(sens, &acc)) printf("fail get accuracy\n"); 124 if (!eeze_sensor_accuracy_get(sens, &acc)) printf("fail get accuracy\n");
125 if (!eeze_sensor_timestamp_get(sens, &timestamp)) printf("fail get timestamp\n"); 125 if (!eeze_sensor_timestamp_get(sens, &timestamp)) printf("fail get timestamp\n");
126 printf("Proximity output: accuracy %i, distance %f at time: %lli\n", acc, x, timestamp); 126 printf("Proximity output: accuracy %i, distance %f at time: %lli\n", acc, x, timestamp);
@@ -132,7 +132,7 @@ main(void)
132 sens = eeze_sensor_new(EEZE_SENSOR_TYPE_LIGHT); 132 sens = eeze_sensor_new(EEZE_SENSOR_TYPE_LIGHT);
133 if (sens) 133 if (sens)
134 { 134 {
135 if (!eeze_sensor_xyz_get(sens, &x, &y, &z)) printf("fail get xyz\n"); 135 if (!eeze_sensor_x_get(sens, &x)) printf("fail get x\n");
136 if (!eeze_sensor_accuracy_get(sens, &acc)) printf("fail get accuracy\n"); 136 if (!eeze_sensor_accuracy_get(sens, &acc)) printf("fail get accuracy\n");
137 if (!eeze_sensor_timestamp_get(sens, &timestamp)) printf("fail get timestamp\n"); 137 if (!eeze_sensor_timestamp_get(sens, &timestamp)) printf("fail get timestamp\n");
138 printf("Light output: accuracy %i, lux %f at time: %lli\n", acc, x, timestamp); 138 printf("Light output: accuracy %i, lux %f at time: %lli\n", acc, x, timestamp);