Hi
In bme280_init(), the first null_ptr_check(dev) is ok, but the next null_ptr_check() in bme280_get_regs(BME280_CHIP_ID_ADDR, &chip_id, 1, dev) is failed, and interface change from SPI to I2C?
It's realy stange, could you please single step print log to confirm the workflow is correct?
... View more