drivers: sensor: tmp112: correct type
TMP112 registers are 16bit so there is no reason to use int64_t for register values Signed-off-by: Guillaume Lager <g.lager@innoseis.com>
This commit is contained in:
parent
f2d2a48b96
commit
cd207ca0bc
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ static int tmp112_attr_set(const struct device *dev,
|
|||
const struct sensor_value *val)
|
||||
{
|
||||
const struct tmp112_config *cfg = dev->config;
|
||||
int64_t value;
|
||||
uint16_t value;
|
||||
uint16_t cr;
|
||||
|
||||
if (chan != SENSOR_CHAN_AMBIENT_TEMP) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue