summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2021-01-27 11:47:54 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-02-02 17:18:18 +0000
commita2fec126670a0395078c78b7234ef3936b0a8449 (patch)
tree35c5574467dc86695cf0e6d997e8ac5254f293dc /src/ipa/raspberrypi
parent49bae441ed58f05a2c25cf6459afa3aa0839824d (diff)
ipa: raspberrypi: alsc: Fix copy-paste error in debug statement
Reported-by: Coverity CID=309689 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>
Diffstat (limited to 'src/ipa/raspberrypi')
-rw-r--r--src/ipa/raspberrypi/controller/rpi/alsc.cpp2
1 files changed, 1 insertions, 1 deletions
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)