diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-04-16 17:11:42 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-04-16 17:11:42 +0200 |
commit | ec3b7b8d2389546ca8bcbefa5108a2d7e1f2afd2 (patch) | |
tree | 4f908a0e270cb70cbb086a126955836e3f447189 /sw | |
parent | fbe6e49386d134b030b4a64fc0f4658b9c371c6e (diff) | |
download | glutte-batteries-ec3b7b8d2389546ca8bcbefa5108a2d7e1f2afd2.tar.gz glutte-batteries-ec3b7b8d2389546ca8bcbefa5108a2d7e1f2afd2.tar.bz2 glutte-batteries-ec3b7b8d2389546ca8bcbefa5108a2d7e1f2afd2.zip |
Disable DBG by default
Diffstat (limited to 'sw')
-rw-r--r-- | sw/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/main.cpp b/sw/main.cpp index 303f9a7..b18ef60 100644 --- a/sw/main.cpp +++ b/sw/main.cpp @@ -438,10 +438,12 @@ int main() const double i_shunt = (adc_voltage - 2.5) / (20.0 * R_SHUNT); capacity_accum += i_shunt * ltc2400_measure_interval.microsecs_ * 1e-6; +#if DEBUG_MEASUREMENT snprintf(timestamp_buf, sizeof(timestamp_buf), "DBG,%ldmV,%ldmA" ENDL, lrint((adc_voltage - 2.5) * 1e3), lrint(i_shunt * 1e3)); uart_puts(timestamp_buf); +#endif if (capacity_accum < 0) { capacity_accum = 0; } if (capacity_accum > MAX_CAPACITY) { capacity_accum = MAX_CAPACITY; } |