sensor: ignore anchor & interval of queries if the provider does not support them 11/78711/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 6 Jul 2016 12:23:08 +0000 (21:23 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 6 Jul 2016 12:23:08 +0000 (21:23 +0900)
Change-Id: I214e6344ea56a2b20204e72c721f765d889b5c25
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/sensor/Querier.cpp

index 7cc0b9b..feec0b3 100644 (file)
@@ -47,7 +47,8 @@ int Querier::query(int startTime, int endTime)
 
 int Querier::query(int startTime, int endTime, int anchor, int interval)
 {
-       return ERR_INVALID_PARAMETER;
+       _D("Ignore anchor & interval");
+       return query(startTime, endTime);
 }
 
 void Querier::onTableCreated(unsigned int queryId, int error)