Skip to content

Commit

Permalink
sensord: error -> warning for expected failures
Browse files Browse the repository at this point in the history
old-commit-hash: 16c36b0
  • Loading branch information
adeebshihadeh committed Aug 7, 2024
1 parent caaddfa commit 7b5d3db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/sensord/sensors/bmx055_magn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion system/sensord/sensors/i2c_sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class I2CSensor : public Sensor {
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) {
Expand Down

0 comments on commit 7b5d3db

Please sign in to comment.