fix: remove unused preset version logging in printPresetInfo function

This commit is contained in:
ob-yalian
2026-09-22 15:24:55 +08:00
parent 6546b8804f
commit 77c636e266
@@ -204,14 +204,6 @@ void printPresetInfo(const std::shared_ptr<ob::Device> &device) {
}
}
}
std::string key = "PresetVer";
if (device->isExtensionInfoExist(key)) {
std::string value = device->getExtensionInfo(key);
RCLCPP_INFO_STREAM(logger, "preset version: " << value);
} else {
RCLCPP_INFO_STREAM(logger, "preset version: not available");
}
} catch (ob::Error &e) {
RCLCPP_WARN_STREAM(logger,
"Failed to get preset info: " << orbbec_camera::formatObErrorWithStatus(e));