| 387 | } |
| 388 | |
| 389 | void SensorDataProvider::logSensorAvailability() |
| 390 | { |
| 391 | uint8_t index = 0U; |
| 392 | uint8_t cnt = m_impl->getNumSensors(); |
| 393 | |
| 394 | /* For user information, show the sensor driver states. */ |
| 395 | while (cnt > index) |
| 396 | { |
| 397 | ISensor* sensor = m_impl->getSensor(index); |
| 398 | |
| 399 | if (nullptr != sensor) |
| 400 | { |
| 401 | bool isAvailable = sensor->isAvailable(); |
| 402 | |
| 403 | LOG_INFO("Sensor %s: %s", sensor->getName(), (false == isAvailable) ? "-" : "available"); |
| 404 | } |
| 405 | |
| 406 | ++index; |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | void SensorDataProvider::channelOffsetToJson(JsonArray& jsonOffset, const ISensorChannel& channel) const |
| 411 | { |
nothing calls this directly
no test coverage detected