Skip to content

Commit

Permalink
Change value to pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
anujdeshpande committed Aug 23, 2024
1 parent ac9af32 commit 761851d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/simple/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ int main(void)
LOG_INF("No device found");
return 0;
}
LOG_INF("Device not NULL");
LOG_INF("Setting attributes");

struct sensor_value conductivity;
sensor_attr_set(dev,SENSOR_CHAN_OEMEC_CONDUCTIVITY,SENSOR_ATTR_OEMEC_PROBE,&conductivity);
while (true) {
rc = sensor_sample_fetch(dev);
if (rc != 0 ){
Expand Down

0 comments on commit 761851d

Please sign in to comment.