Message ID | 20190619025129.21164-15-niklas.soderlund@ragnatech.se |
---|---|
State | Accepted |
Headers | show |
Series |
|
Related | show |
diff --git a/src/cam/main.cpp b/src/cam/main.cpp index 784f58cb2d8758e4..4e9abf666fedf211 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; }