sensord: error -> warning for expected failures

old-commit-hash: 16c36b0d8b
This commit is contained in:
Adeeb Shihadeh 2024-08-06 17:25:03 -07:00
parent caaddfa7b2
commit 7b5d3dbbca
2 changed files with 2 additions and 2 deletions

View File

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

View File

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