Skip to content

tof: back off before reopening the head IMU after a read failure - #276

Open
hadelan wants to merge 1 commit into
pollen-robotics:mainfrom
hadelan:tof-imu-reopen-backoff
Open

tof: back off before reopening the head IMU after a read failure#276
hadelan wants to merge 1 commit into
pollen-robotics:mainfrom
hadelan:tof-imu-reopen-backoff

Conversation

@hadelan

@hadelan hadelan commented Sep 12, 2026

Copy link
Copy Markdown

A read failure in the BMI088 loop fell straight back into open_imu: a chip that answers its ID but cannot stream was reopened in a tight loop, warning each time, on the I²C bus the audio codec shares. The open-failure path has always backed off; the read-failure path now waits on the same backoff, which is what the module docs already claimed.

No new arithmetic — the retry sequence is the one the open-failure path and the ToF loop already use — so no new unit test; the loop itself needs the chip. cargo test -p tof, clippy -D warnings, fmt --check all green.

A read failure fell straight back into open_imu: a chip that answers its
ID but cannot stream was reopened in a tight loop, warning each time, on
the bus the audio codec shares. Same backoff as the open-failure path,
which the module docs always claimed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant