diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-12-19 08:07:29 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-12-19 08:07:29 +0000 |
commit | b2d30ccd856cbb4368701dd76883dbb1a80790e5 (patch) | |
tree | 8199552775c079da756a4adb245428fd59ddccf3 | |
parent | 86028528d62951e8b323d0aba55a6e85563253a0 (diff) | |
parent | 98f1a92c3f698f656b6adda339a4ebbdd8e7eb8c (diff) | |
download | contexthub-android-10.0.0_r31.tar.gz |
Snap for 6085360 from 98f1a92c3f698f656b6adda339a4ebbdd8e7eb8c to qt-qpr2-releaseandroid-10.0.0_r36android-10.0.0_r35android-10.0.0_r34android-10.0.0_r33android-10.0.0_r32android-10.0.0_r31android-10.0.0_r30android10-qpr2-s4-releaseandroid10-qpr2-s3-releaseandroid10-qpr2-s2-releaseandroid10-qpr2-s1-releaseandroid10-qpr2-release
Change-Id: Icd159549a769ae63e0b9a4c521ac605f080297bb
-rw-r--r-- | firmware/os/algos/calibration/nano_calibration/nano_calibration.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/firmware/os/algos/calibration/nano_calibration/nano_calibration.cc b/firmware/os/algos/calibration/nano_calibration/nano_calibration.cc index 0df2ae6b..8dcbda7b 100644 --- a/firmware/os/algos/calibration/nano_calibration/nano_calibration.cc +++ b/firmware/os/algos/calibration/nano_calibration/nano_calibration.cc @@ -30,21 +30,24 @@ using ::online_calibration::SensorIndex; using ::online_calibration::SensorType; // NanoSensorCal logging macros. -#ifdef NANO_SENSOR_CAL_DBG_ENABLED #ifndef LOG_TAG #define LOG_TAG "[ImuCal]" #endif + +#ifdef NANO_SENSOR_CAL_DBG_ENABLED #define NANO_CAL_LOGD(tag, format, ...) LOGD("%s " format, tag, ##__VA_ARGS__) -#define NANO_CAL_LOGI(tag, format, ...) LOGI("%s " format, tag, ##__VA_ARGS__) #define NANO_CAL_LOGW(tag, format, ...) LOGW("%s " format, tag, ##__VA_ARGS__) #define NANO_CAL_LOGE(tag, format, ...) LOGE("%s " format, tag, ##__VA_ARGS__) #else #define NANO_CAL_LOGD(tag, format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) -#define NANO_CAL_LOGI(tag, format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) #define NANO_CAL_LOGW(tag, format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) #define NANO_CAL_LOGE(tag, format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) #endif // NANO_SENSOR_CAL_DBG_ENABLED +// NOTE: LOGI is defined to ensure calibration updates are always logged for +// field diagnosis and verification. +#define NANO_CAL_LOGI(tag, format, ...) LOGI("%s " format, tag, ##__VA_ARGS__) + } // namespace void NanoSensorCal::Initialize(OnlineCalibrationThreeAxis *accel_cal, |