message: don't search afe and laser temperature sensors on FXTOF1 and CHICONY
diff: @@ -79,7 +79,36 @@ buildCameras(std::unique_ptr<SensorEnumeratorInterface> enumerator) {
  << " while looking for storage for camera AD-96TOF1-EBZ";
  break;
  }
  + std::shared_ptr<StorageInterface> eeprom = *eeprom_iter;
  +
  +#if defined CHICONY_006 || defined FXTOF1
  + // Look for temperature sensor
  + auto tempSensorIter = std::find_if(
  + temperatureSensors.begin(), temperatureSensors.end(),
  + [](std::shared_ptr<TemperatureSensorInterface> tSensor) {
  + std::string name;
  + tSensor->getName(name);
  + return name == skChiconyTempSensor;
  + });
  + if (tempSensorIter == temperatureSensors.end()) {
  + DLOG(INFO) << "Could not find " << skChiconyTempSensor
  + << " while looking for temperature sensors for "
  + "camera Chicony";
  + break;
  + }
  +
  + std::shared_ptr<TemperatureSensorInterface> tempSensor =
  + *tempSensorIter;
  +
  +#ifdef CHICONY_006
  + std::shared_ptr<Camera> camera =
  + std::make_shared<CameraChicony>(dSensor, eeprom, tempSensor);
  +#elif defined FXTOF1
  + std::shared_ptr<Camera> camera =
  + std::make_shared<CameraFxTof1>(dSensor, eeprom, tempSensor);
  +#endif
  +#else
  // Look for AFE temperature sensor
  auto afeTempSensorIter = std::find_if(
  temperatureSensors.begin(), temperatureSensors.end(),
  @@ -94,6 +123,8 @@ buildCameras(std::unique_ptr<SensorEnumeratorInterface> enumerator) {
  "camera AD-96TOF1-EBZ";
  break;
  }
  + std::shared_ptr<TemperatureSensorInterface> afeTempSensor =
  + *afeTempSensorIter;
  // Look for laser temperature sensor
  auto laserTempSensorIter = std::find_if(
  @@ -109,40 +140,9 @@ buildCameras(std::unique_ptr<SensorEnumeratorInterface> enumerator) {
  "camera AD-96TOF1-EBZ";
  break;
  }
  -
  - std::shared_ptr<StorageInterface> eeprom = *eeprom_iter;
  - std::shared_ptr<TemperatureSensorInterface> afeTempSensor =
  - *afeTempSensorIter;
  std::shared_ptr<TemperatureSensorInterface> laserTempSensor =
  *laserTempSensorIter;
  -#if defined CHICONY_006 || defined FXTOF1
  - // Look for temperature sensor
  - auto tempSensorIter = std::find_if(
  - temperatureSensors.begin(), temperatureSensors.end(),
  - [](std::shared_ptr<TemperatureSensorInterface> tSensor) {
  - std::string name;
  - tSensor->getName(name);
  - return name == skChiconyTempSensor;
  - });
  - if (tempSensorIter == temperatureSensors.end()) {
  - DLOG(INFO) << "Could not find " << skChiconyTempSensor
  - << " while looking for temperature sensors for "
  - "camera Chicony";
  - break;
  - }
  -
  - std::shared_ptr<TemperatureSensorInterface> tempSensor =
  - *tempSensorIter;
  -
  -#ifdef CHICONY_006
  - std::shared_ptr<Camera> camera =
  - std::make_shared<CameraChicony>(dSensor, eeprom, tempSensor);
  -#elif defined FXTOF1
  - std::shared_ptr<Camera> camera =
  - std::make_shared<CameraFxTof1>(dSensor, eeprom, tempSensor);
  -#endif
  -#else
  std::shared_ptr<Camera> camera = std::make_shared<Camera96Tof1>(
  dSensor, eeprom, afeTempSensor, laserTempSensor);
  #endif
  