Skip to content
Commit faa855b9 authored by Peter Bigot's avatar Peter Bigot Committed by Maureen Helm
Browse files

drivers: i2c_nrfx_twim: refactor concat check logic



The condition of being either the last message or not concatenable to
the next message is the inverse of the condition of committing to
concatenate the next message.  The latter is arguably easier to
understand.  Reverse the logic, document the conditions, and simplify
the early continue.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent 1278c13d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment