PAW3902: fix mode change shutter thresholds

According to PixArt datasheet
This commit is contained in:
joevn
2020-01-11 12:14:45 -08:00
committed by Daniel Agar
parent ba28ef5809
commit 04ba05f5a0

View File

@@ -603,7 +603,7 @@ PAW3902::Run()
// LowLight -> SuperLowLight
changeMode(Mode::SuperLowLight);
} else if ((shutter >= 0x0BB8)) { // AND valid for 10 consecutive frames?
} else if ((shutter < 0x0BB8)) { // AND valid for 10 consecutive frames?
// LowLight -> Bright
changeMode(Mode::Bright);
}
@@ -613,7 +613,7 @@ PAW3902::Run()
case Mode::SuperLowLight:
// SuperLowLight -> LowLight
if ((shutter >= 0x03E8)) { // AND valid for 10 consecutive frames?
if ((shutter < 0x03E8)) { // AND valid for 10 consecutive frames?
changeMode(Mode::LowLight);
}