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:
committed by
Kieran Bingham
parent
1a77984c89
commit
5dfd2bfc0d
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user