diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cam/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp index 784f58cb..4e9abf66 100644 --- a/src/cam/main.cpp +++ b/src/cam/main.cpp @@ -243,6 +243,18 @@ int CamApp::prepareConfig() } } + switch (config_->validate()) { + case CameraConfiguration::Valid: + break; + case CameraConfiguration::Adjusted: + std::cout << "Camera configuration adjusted" << std::endl; + break; + case CameraConfiguration::Invalid: + std::cout << "Camera configuration invalid" << std::endl; + config_.reset(); + return -EINVAL; + } + return 0; } |