Skip to content
Commit 6324d115 authored by Mark Vels's avatar Mark Vels Committed by Anas Nashif
Browse files

sensors: tmp112: Fix breakage on stm32f4 platform



It makes no sense to set the restart condition flag on a first message
and some i2c bus drivers (like the stm32 v1 driver) actually reject
them by returning an error from i2c_transfer().

This patch fixes that by using i2c_burst_read() in tmp112_reg_read()
instead. For consistency, tmp112_reg_write() is also changed to use
i2c_burst_write().

Signed-off-by: default avatarMark Vels <mark.vels@team-embedded.nl>
parent 018b489a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment