From 7b5d3dbbca6104e4d8b66e97d754e633167614e6 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 6 Aug 2024 17:25:03 -0700 Subject: [PATCH] sensord: error -> warning for expected failures old-commit-hash: 16c36b0d8b26d5589ac2378fabf8620a58fa4f9c --- system/sensord/sensors/bmx055_magn.cc | 2 +- system/sensord/sensors/i2c_sensor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/sensord/sensors/bmx055_magn.cc b/system/sensord/sensors/bmx055_magn.cc index 3d0d3d2fc6..223f0337e8 100644 --- a/system/sensord/sensors/bmx055_magn.cc +++ b/system/sensord/sensors/bmx055_magn.cc @@ -78,7 +78,7 @@ int BMX055_Magn::init() { // suspend -> sleep int ret = set_register(BMX055_MAGN_I2C_REG_PWR_0, 0x01); if (ret < 0) { - LOGE("Enabling power failed: %d", ret); + LOGW("Enabling power failed: %d", ret); goto fail; } util::sleep_for(5); // wait until the chip is powered on diff --git a/system/sensord/sensors/i2c_sensor.h b/system/sensord/sensors/i2c_sensor.h index ba100c3b01..6082510083 100644 --- a/system/sensord/sensors/i2c_sensor.h +++ b/system/sensord/sensors/i2c_sensor.h @@ -39,7 +39,7 @@ public: uint8_t chip_id = 0; int ret = read_register(address, &chip_id, 1); if (ret < 0) { - LOGE("Reading chip ID failed: %d", ret); + LOGW("Reading chip ID failed: %d", ret); return -1; } for (int i = 0; i < expected_ids.size(); ++i) {