pipeline: raspberrypi: Fix for staggered write on reset

The reset function in staggered write was using the wrong index when
looking for the last updated camera parameters. This would cause
possibly stale exposure values to be written to the camera on a
mode switch for captures.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Naushir Patuck
2020-05-29 08:16:46 +01:00
committed by Kieran Bingham
parent 1a77984c89
commit 5dfd2bfc0d

View File

@@ -46,7 +46,7 @@ void StaggeredCtrl::reset()
{
std::lock_guard<std::mutex> lock(lock_);
int lastSetCount = std::max<int>(0, setCount_ - 1);
int lastSetCount = setCount_;
std::unordered_map<uint32_t, int32_t> lastVal;
/* Reset the counters. */