diff options
Diffstat (limited to 'driver/temp_sensor/tmp006.c')
-rw-r--r-- | driver/temp_sensor/tmp006.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/temp_sensor/tmp006.c b/driver/temp_sensor/tmp006.c index 22f4402747..96922c857c 100644 --- a/driver/temp_sensor/tmp006.c +++ b/driver/temp_sensor/tmp006.c @@ -75,8 +75,8 @@ static const struct tmp006_data_t tmp006_data_default = { static int tmp006_has_power(int idx) { -#ifdef CONFIG_TEMP_SENSOR_POWER_GPIO - return gpio_get_level(CONFIG_TEMP_SENSOR_POWER_GPIO); +#ifdef CONFIG_TEMP_SENSOR_POWER + return gpio_get_level(GPIO_TEMP_SENSOR_POWER); #else return 1; #endif |