summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Jacobs <davejacobs@google.com>2019-12-06 17:38:23 -0500
committerDavid Jacobs <davejacobs@google.com>2019-12-06 17:38:23 -0500
commita5bae3891051662ff615dfe076e05df705b39293 (patch)
treee7aace3ff7bafab21ebc0aaf3f94c5f293469d91
parent1b918f49dcb1dc72ed7571696277b0658c1c819d (diff)
downloadcontexthub-a5bae3891051662ff615dfe076e05df705b39293.tar.gz
[ImuCal] Changes log-level for LoadAshCalibration fail message
- This change aims to reduce confusion with this log message since it is frequently not an error and arises when there is no previous cal data to load (e.g., on first device boot). - This change was migrated from Google3 (284259994). Bug: 145825423 Test: Built firmware. Change-Id: I919a858f920b06eab657df40d4b7947953e42a0b
-rw-r--r--firmware/os/algos/calibration/nano_calibration/nano_calibration.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/os/algos/calibration/nano_calibration/nano_calibration.cc b/firmware/os/algos/calibration/nano_calibration/nano_calibration.cc
index 0471b8d9..feabbd6a 100644
--- a/firmware/os/algos/calibration/nano_calibration/nano_calibration.cc
+++ b/firmware/os/algos/calibration/nano_calibration/nano_calibration.cc
@@ -334,7 +334,9 @@ bool NanoSensorCal::LoadAshCalibration(uint8_t chreSensorType,
}
}
} else {
- NANO_CAL_LOGE(sensor_tag, "ASH failed to recall calibration data.");
+ // This is not necessarily an error since there may not be any previously
+ // stored runtime calibration data to load yet (e.g., first device boot).
+ NANO_CAL_LOGW(sensor_tag, "ASH did not recall calibration data.");
}
return false;