[libcamera-devel] ipa: raspberrypi: alsc: Fix copy-paste error in debug statement
diff mbox series

Message ID 20210127114754.16732-1-david.plowman@raspberrypi.com
State Accepted
Commit a2fec126670a0395078c78b7234ef3936b0a8449
Headers show
Series
  • [libcamera-devel] ipa: raspberrypi: alsc: Fix copy-paste error in debug statement
Related show

Commit Message

David Plowman Jan. 27, 2021, 11:47 a.m. UTC
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
---
 src/ipa/raspberrypi/controller/rpi/alsc.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kieran Bingham Jan. 27, 2021, 12:13 p.m. UTC | #1
Hi David,

On 27/01/2021 11:47, David Plowman wrote:
> Signed-off-by: David Plowman <david.plowman@raspberrypi.com>

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> ---
>  src/ipa/raspberrypi/controller/rpi/alsc.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/ipa/raspberrypi/controller/rpi/alsc.cpp b/src/ipa/raspberrypi/controller/rpi/alsc.cpp
> index 5262bcab..b0d24aa2 100644
> --- a/src/ipa/raspberrypi/controller/rpi/alsc.cpp
> +++ b/src/ipa/raspberrypi/controller/rpi/alsc.cpp
> @@ -403,7 +403,7 @@ void get_cal_table(double ct, std::vector<AlscCalibration> const &calibrations,
>  		memcpy(cal_table, calibrations.back().table,
>  		       XY * sizeof(double));
>  		LOG(RPiAlsc, Debug) << "using calibration for "
> -				    << calibrations.front().ct;
> +				    << calibrations.back().ct;
>  	} else {
>  		int idx = 0;
>  		while (ct > calibrations[idx + 1].ct)
>

Patch
diff mbox series

diff --git a/src/ipa/raspberrypi/controller/rpi/alsc.cpp b/src/ipa/raspberrypi/controller/rpi/alsc.cpp
index 5262bcab..b0d24aa2 100644
--- a/src/ipa/raspberrypi/controller/rpi/alsc.cpp
+++ b/src/ipa/raspberrypi/controller/rpi/alsc.cpp
@@ -403,7 +403,7 @@  void get_cal_table(double ct, std::vector<AlscCalibration> const &calibrations,
 		memcpy(cal_table, calibrations.back().table,
 		       XY * sizeof(double));
 		LOG(RPiAlsc, Debug) << "using calibration for "
-				    << calibrations.front().ct;
+				    << calibrations.back().ct;
 	} else {
 		int idx = 0;
 		while (ct > calibrations[idx + 1].ct)