Message ID | 20240915235044.2188179-3-paul.elder@ideasonboard.com |
---|---|
State | Accepted |
Commit | f2088eb91fd6477b152233b9031cb115ca1ae824 |
Headers | show |
Series |
|
Related | show |
diff --git a/src/apps/cam/camera_session.cpp b/src/apps/cam/camera_session.cpp index fc0923801..d24ecbb3a 100644 --- a/src/apps/cam/camera_session.cpp +++ b/src/apps/cam/camera_session.cpp @@ -176,6 +176,17 @@ void CameraSession::listControls() const std::cout << " (" << val << ")" << std::endl; } } + + if (id->isArray()) { + std::size_t size = id->size(); + + std::cout << " Size: "; + if (size == std::numeric_limits<std::size_t>::max()) + std::cout << "n"; + else + std::cout << std::to_string(size); + std::cout << std::endl; + } } }