diff options
Diffstat (limited to 'driver/temp_sensor/tmp112.c')
-rw-r--r-- | driver/temp_sensor/tmp112.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/temp_sensor/tmp112.c b/driver/temp_sensor/tmp112.c index f567e2433c..32ffc1ced6 100644 --- a/driver/temp_sensor/tmp112.c +++ b/driver/temp_sensor/tmp112.c @@ -74,7 +74,7 @@ static void tmp112_init(void) set_mask = (3 << 5); /* not oneshot mode */ - clr_mask = (1 << 7); + clr_mask = BIT(7); raw_read16(TMP112_REG_CONF, &tmp); raw_write16(TMP112_REG_CONF, (tmp & ~clr_mask) | set_mask); |