Browse Source

ae: debugging note when out of options. 7.67 sec to "full dark".

Pavel Machek 6 months ago
parent
commit
def6e19b5e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/process_pipeline.c

+ 4 - 1
src/process_pipeline.c

@@ -528,10 +528,13 @@ process_aaa()
                                 // Raise sensor gain if exposure limit is hit
 				update_exp(&state_proc.gain, direction);
                                 printf("Gain + %d\n", state_proc.gain.value_req);
-                        } else {
+                        } else if (state_proc.dgain.value < state_proc.dgain.max) {
                                 // Raise sensor dgain if out of ananlog gain
 				update_exp(&state_proc.dgain, direction);
                                 printf("D/Gain + %d\n", state_proc.dgain.value_req);
+			} else {
+				printf("AE: out of options\n");
+				exit(1); /* HACK HACK don't merge */
 			}
                 } else if (direction < 0) {
                         // Preview is too bright