these should be debug logs
This commit is contained in:
parent
9330070bb5
commit
92922ce2ae
|
@ -693,7 +693,7 @@ void* processing_thread(void *arg) {
|
|||
// truly stuck, needs help
|
||||
s->cameras.rear.self_recover -= 1;
|
||||
if (s->cameras.rear.self_recover < -FOCUS_RECOVER_PATIENCE) {
|
||||
LOGW("rear camera bad state detected. attempting recovery from %.1f, recover state is %d",
|
||||
LOGD("rear camera bad state detected. attempting recovery from %.1f, recover state is %d",
|
||||
lens_true_pos, s->cameras.rear.self_recover.load());
|
||||
s->cameras.rear.self_recover = FOCUS_RECOVER_STEPS + ((lens_true_pos < (s->cameras.device == DEVICE_LP3? LP3_AF_DAC_M:OP3T_AF_DAC_M))?1:0); // parity determined by which end is stuck at
|
||||
}
|
||||
|
@ -703,7 +703,7 @@ void* processing_thread(void *arg) {
|
|||
// in suboptimal position with high prob, but may still recover by itself
|
||||
s->cameras.rear.self_recover -= 1;
|
||||
if (s->cameras.rear.self_recover < -(FOCUS_RECOVER_PATIENCE*3)) {
|
||||
LOGW("rear camera bad state detected. attempting recovery from %.1f, recover state is %d", lens_true_pos, s->cameras.rear.self_recover.load());
|
||||
LOGD("rear camera bad state detected. attempting recovery from %.1f, recover state is %d", lens_true_pos, s->cameras.rear.self_recover.load());
|
||||
s->cameras.rear.self_recover = FOCUS_RECOVER_STEPS/2 + ((lens_true_pos < (s->cameras.device == DEVICE_LP3? LP3_AF_DAC_M:OP3T_AF_DAC_M))?1:0);
|
||||
}
|
||||
} else if (s->cameras.rear.self_recover < 0) {
|
||||
|
|
Loading…
Reference in a new issue