We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a9fe31 commit 243fce9Copy full SHA for 243fce9
drivers/sensor/ti/ti_hdc302x/ti_hdc302x.c
@@ -922,7 +922,7 @@ static int ti_hdc302x_init(const struct device *dev)
922
}
923
924
/* Configure interrupt GPIO if available */
925
- if (config->gpio_int.port) {
+ if (config->gpio_int.port != NULL) {
926
if (!gpio_is_ready_dt(&config->gpio_int)) {
927
LOG_ERR("GPIO interrupt device not ready");
928
return -ENODEV;
0 commit comments