Skip to content

Commit 243fce9

Browse files
Update drivers/sensor/ti/ti_hdc302x/ti_hdc302x.c
Co-authored-by: Pieter De Gendt <[email protected]>
1 parent 6a9fe31 commit 243fce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/ti/ti_hdc302x/ti_hdc302x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ static int ti_hdc302x_init(const struct device *dev)
922922
}
923923

924924
/* Configure interrupt GPIO if available */
925-
if (config->gpio_int.port) {
925+
if (config->gpio_int.port != NULL) {
926926
if (!gpio_is_ready_dt(&config->gpio_int)) {
927927
LOG_ERR("GPIO interrupt device not ready");
928928
return -ENODEV;

0 commit comments

Comments
 (0)