clang optimizations and improved error handling

This commit is contained in:
Maik Jurischka
2025-12-19 07:42:24 +01:00
parent 43c172c03f
commit 108c56ab06
5 changed files with 29 additions and 29 deletions

View File

@@ -20,7 +20,7 @@ int main() {
// List available cameras
std::vector<std::string> devList;
int deviceCount = VxDiscoverCameraDevices(devList);
const int deviceCount = VxDiscoverCameraDevices(devList);
if (deviceCount == 0) {
std::cout << "No cameras found" << std::endl;
@@ -72,7 +72,7 @@ int main() {
<< " @ " << fmtList[0].framerate << " fps" << std::endl;
// Create camera controller
auto controller = std::make_shared<CameraController>(cam);
const auto controller = std::make_shared<CameraController>(cam);
// Start Unix domain socket server
const std::string socketPath = "/tmp/vizion_control.sock";