Skip to content

Commit

Permalink
additional enum fix for spdlog
Browse files Browse the repository at this point in the history
  • Loading branch information
chengguizi committed May 8, 2024
1 parent 8547c16 commit a3c2f45
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/device/DeviceBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,8 @@ std::vector<StereoPair> DeviceBase::getAvailableStereoPairs() {
stereoPairs.push_back(dai::StereoPair{leftSocket, rightSocket, std::abs(baseline), static_cast<int>(translationVector[0]) == 0});
}
} else {
pimpl->logger.debug("Skipping diagonal pair, left: {}, right: {}.", leftSocket, rightSocket);
pimpl->logger.debug("Skipping diagonal pair, left: {}, right: {}.",
static_cast<std::int32_t>(leftSocket), static_cast<std::int32_t>(rightSocket));
}
} catch(const std::exception&) {
continue;
Expand All @@ -1096,10 +1097,10 @@ std::vector<StereoPair> DeviceBase::getAvailableStereoPairs() {
std::copy_if(
stereoPairs.begin(), stereoPairs.end(), std::back_inserter(filteredStereoPairs), [this, connectedCameras, deviceStereoPairs](dai::StereoPair pair) {
if(std::find(connectedCameras.begin(), connectedCameras.end(), pair.left) == connectedCameras.end()) {
pimpl->logger.debug("Skipping calibrated stereo pair because, camera {} was not detected.", pair.left);
pimpl->logger.debug("Skipping calibrated stereo pair because, camera {} was not detected.", static_cast<std::int32_t>(pair.left));
return false;
} else if(std::find(connectedCameras.begin(), connectedCameras.end(), pair.right) == connectedCameras.end()) {
pimpl->logger.debug("Skipping calibrated stereo pair because, camera {} was not detected.", pair.right);
pimpl->logger.debug("Skipping calibrated stereo pair because, camera {} was not detected.", static_cast<std::int32_t>(pair.right));
return false;
}
return std::find_if(deviceStereoPairs.begin(),
Expand Down

0 comments on commit a3c2f45

Please sign in to comment.