Commit d4652a77 authored by Daniel Brown's avatar Daniel Brown

Fixing logic

parent db8b4b32
......@@ -11050,7 +11050,7 @@ int assign_lens_parameter(component_param_t *component_param) {
*component_param->uborder = 0;
} else if (strcasecmp("Px", component_param->parameter) == 0) {
if(lens->is_astigmatic){
if(!lens->is_astigmatic){
gerror("Use P parameter when tuning spherical lens %s\n", lens->name);
}
if(lens->is_focal_length){
......@@ -11068,7 +11068,7 @@ int assign_lens_parameter(component_param_t *component_param) {
*component_param->uborder = 0;
} else if (strcasecmp("Py", component_param->parameter) == 0) {
if(lens->is_astigmatic){
if(!lens->is_astigmatic){
gerror("Use P parameter when tuning spherical lens %s\n", lens->name);
}
if(lens->is_focal_length){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment