| 530 | } |
| 531 | |
| 532 | bool Connection::isSensorStateUpdated(int i, std::unique_ptr<Sensor>& sensor) { |
| 533 | return (m_AckedSensorState[i] != sensor->getSensorState() |
| 534 | || m_AckedSensorCalibration[i] != sensor->hasCompletedRestCalibration() |
| 535 | || m_AckedSensorConfigData[i] != sensor->getSensorConfigData()) |
| 536 | && sensor->getSensorType() != SensorTypeID::Unknown |
| 537 | && sensor->getSensorType() != SensorTypeID::Empty; |
| 538 | } |
| 539 | |
| 540 | void Connection::searchForServer() { |
| 541 | while (true) { |
nothing calls this directly
no test coverage detected