Remove debug info

This commit is contained in:
rbaron 2023-03-29 21:46:41 +02:00
parent ebc26fcccd
commit cb40173b6b
3 changed files with 5 additions and 5 deletions

View file

@ -96,7 +96,7 @@ static inline float get_soil_moisture_percent(float battery_voltage,
const float dry = eval_poly(dry_coeffs, x);
const float wet = eval_poly(wet_coeffs, x);
const float percent = (raw_adc_output - dry) / (wet - dry);
LOG_INF("Read soil moisture 2: %.2f | Raw %u | Batt: %.2f | Dry: %.2f | Wet: %.2f",
LOG_DBG("Read soil moisture 2: %.2f | Raw %u | Batt: %.2f | Dry: %.2f | Wet: %.2f",
100.0f * percent, raw_adc_output, x, dry, wet);
return percent;
}
@ -133,10 +133,10 @@ int prst_adc_init() {
#endif
for (size_t idx = 0; idx < ARRAY_SIZE(dry_coeffs); idx++) {
LOG_INF("Dry coeff %d: %d\n", idx, dry_coeffs[idx]);
LOG_DBG("Dry coeff %d: %d\n", idx, dry_coeffs[idx]);
}
for (size_t idx = 0; idx < ARRAY_SIZE(wet_coeffs); idx++) {
LOG_INF("Wet coeff %d: %d\n", idx, wet_coeffs[idx]);
LOG_DBG("Wet coeff %d: %d\n", idx, wet_coeffs[idx]);
}
return 0;
}

View file

@ -12,4 +12,4 @@ target_sources(app PRIVATE src/main.c)
add_subdirectory(../../prstlib prstlib)
target_include_directories(app PRIVATE ../../prstlib/include)
target_link_libraries(app PUBLIC prstlib)
target_link_libraries(app PUBLIC prstlib)

View file

@ -15,4 +15,4 @@ CONFIG_USE_SEGGER_RTT=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_PRSTLIB_LOG_LEVEL_DBG=y
CONFIG_PRSTLIB_LOG_LEVEL_DBG=y