I found the example code in github(https://github.com/BoschSensortec/BMI160_driver/wiki/How-to-use-an-auxiliary-sensor-or-magnetometer-with-the-BMI160.), but I feel confused about the code. The while loop in the example: rslt = bmi160_set_fifo_config (fifo_config, BMI160_ENABLE, &bmi);
/* Check rslt for any error codes */ while (rslt != 0 ) { ...... } Why the loop could run when the variable "rslt" is not zero?
... View more