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

This commit is contained in:
Pavel Machek
2024-09-03 20:07:30 +02:00
parent 8af8441bbd
commit def6e19b5e

View File

@@ -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