zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.8k stars 6.58k forks source link

Sensor driver: sht4x, sgp40, invalid include path #37454

Closed DominusFulguris closed 3 years ago

DominusFulguris commented 3 years ago

The driver source file, "sht4x.c", attempts to include the header file "sht4x.h" twice with the first occurrence from an apparently invalid path:

(Line 18)

include <drivers/sensor/sht4x.h>

The same thing seems to be true for the sgp40 driver.

The shgp40_sht4x sample application also references this invalid path.

gmarull commented 3 years ago

The file exists in <REPO_ROOT>/include/drivers/sensor/sht4x.h. Sample also builds fine: west build -b blackpill_f411ce samples/sensor/sgp40_sht4x. Closing as this doesn't seem to be a bug.