drivers/sensors/bmp180.c: Eliminate some warnings
This commit is contained in:
parent
3b55f35bb3
commit
5a342e8129
@ -163,12 +163,14 @@ static const struct file_operations g_bmp180fops =
|
||||
bmp180_close, /* close */
|
||||
bmp180_read, /* read */
|
||||
bmp180_write, /* write */
|
||||
0, /* seek */
|
||||
0, /* ioctl */
|
||||
NULL, /* seek */
|
||||
NULL /* ioctl */
|
||||
#ifndef CONFIG_DISABLE_POLL
|
||||
0, /* poll */
|
||||
, NULL /* poll */
|
||||
#endif
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, NULL /* unlink */
|
||||
#endif
|
||||
0 /* unlink */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
@ -472,11 +474,13 @@ static int bmp180_getpressure(FAR struct bmp180_dev_s *priv)
|
||||
|
||||
/* Calculate true temperature */
|
||||
|
||||
x1 = ((priv->bmp180_utemp - priv->bmp180_cal_ac6) * priv->bmp180_cal_ac5) >> 15;
|
||||
x2 = (priv->bmp180_cal_mc << 11) / (x1 + priv->bmp180_cal_md);
|
||||
b5 = x1 + x2;
|
||||
x1 = ((priv->bmp180_utemp - priv->bmp180_cal_ac6) * priv->bmp180_cal_ac5) >> 15;
|
||||
x2 = (priv->bmp180_cal_mc << 11) / (x1 + priv->bmp180_cal_md);
|
||||
b5 = x1 + x2;
|
||||
|
||||
temp = (b5 + 8) >> 4;
|
||||
sninfo("Compensated temperature = %d\n", temp);
|
||||
UNUSED(temp);
|
||||
|
||||
/* Calculate true pressure */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user