sensord: error -> warning for expected failures

old-commit-hash: 16c36b0d8b
pull/33302/head
Adeeb Shihadeh 9 months ago
parent caaddfa7b2
commit 7b5d3dbbca
  1. 2
      system/sensord/sensors/bmx055_magn.cc
  2. 2
      system/sensord/sensors/i2c_sensor.h

@ -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

@ -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) {

Loading…
Cancel
Save