Skip to content

Commit

Permalink
Merge pull request #207 from seime/debug_log_photo
Browse files Browse the repository at this point in the history
Log photo adc value, not soil adc
  • Loading branch information
rbaron authored Jun 4, 2024
2 parents f8c28ce + 21dd14d commit 5f671b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/nrf-connect/prstlib/src/sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ int prst_sensors_read_all(prst_sensors_t *sensors) {

LOG_DBG("Batt: %d mV (%.2f%%)", sensors->batt.adc_read.millivolts,
100 * sensors->batt.percentage);
LOG_DBG("Soil: %.0f %% (%d mV)", 100 * sensors->soil.percentage,
sensors->soil.adc_read.millivolts);
LOG_DBG("Soil: %.0f %%", 100 * sensors->soil.percentage);
LOG_DBG("Photo: %u lx (%d mV)", sensors->photo.brightness,
sensors->soil.adc_read.millivolts);
sensors->photo.adc_read.millivolts);
LOG_DBG("Temp: %f oC", sensors->shtc3.temp_c);
LOG_DBG("Humi: %.0f %%", 100 * sensors->shtc3.rel_humi);
LOG_DBG("--------------------------------------------------");
Expand Down

0 comments on commit 5f671b0

Please sign in to comment.