UncleRus / esp-idf-lib

Component library for ESP32-xx and ESP8266
https://esp-idf-lib.readthedocs.io/en/latest/
1.4k stars 436 forks source link

pointer error in sht4x example #269

Closed pinchy closed 2 years ago

pinchy commented 2 years ago

Describe the bug:

incompatible type error in examples/sht4x/main/main.c line 58.

uint8_t duration = sht4x_get_measurement_duration(dev);

should read

uint8_t duration = sht4x_get_measurement_duration(&dev);

UncleRus commented 2 years ago

Thank you!