Commit 24151655 authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

hi846: improve start_streaming()

to be more self-contained and only return success if streaming indeed
successfully was turned on at the sensor. It's also the only place
that sets the "streaming" state to 1. This simplifies error handling.

Background to the register reading we're moving up so that enabling
streaming is the last operation:

Reading 0x0034 is purely done for debugging reasons. The register is not
documented in the DS but only mentioned once:

"If 0x0034[2] bit is disabled , Visible pixel width and height is 0."

I've never seen that bit be disabled.
parent cc989acb
Pipeline #67721 passed with stage
in 66 minutes and 4 seconds