| 267 | } |
| 268 | |
| 269 | ISensorChannel* SensorPlugin::getChannel(uint8_t sensorIdx, uint8_t channelIdx) |
| 270 | { |
| 271 | ISensor* sensor = SensorDataProvider::getInstance().getSensor(sensorIdx); |
| 272 | ISensorChannel* channel = nullptr; |
| 273 | |
| 274 | if ((nullptr != sensor) && |
| 275 | (true == sensor->isAvailable())) |
| 276 | { |
| 277 | channel = sensor->getChannel(channelIdx); |
| 278 | } |
| 279 | |
| 280 | return channel; |
| 281 | } |
| 282 | |
| 283 | /****************************************************************************** |
| 284 | * External Functions |
nothing calls this directly
no test coverage detected