diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-03 23:28:03 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-03 23:28:03 +0200 |
commit | 86423445ae296fe39d4831cc70ced2e444fd11a8 (patch) | |
tree | 3a917318bd3141971b4306f8cac866106109060a /src | |
parent | 961cfb807a5ab0e15777507f16ca01753720ed26 (diff) | |
download | glutte-o-matic-86423445ae296fe39d4831cc70ced2e444fd11a8.tar.gz glutte-o-matic-86423445ae296fe39d4831cc70ced2e444fd11a8.tar.bz2 glutte-o-matic-86423445ae296fe39d4831cc70ced2e444fd11a8.zip |
Add more debugging every 30s
Diffstat (limited to 'src')
-rw-r--r-- | src/common/src/Core/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/src/Core/main.c b/src/common/src/Core/main.c index 8cce8da..5edd1f5 100644 --- a/src/common/src/Core/main.c +++ b/src/common/src/Core/main.c @@ -407,6 +407,11 @@ static void gps_monit_task(void __attribute__ ((unused))*pvParameters) { t_gps_print_latch = 1; + + usart_debug("ALIM %d mV\r\n", (int)roundf(1000.0f * analog_measure_12v())); + + const float temp = temperature_get(); + usart_debug("TEMP %d.%02d\r\n", (int)temp, (int)(temp * 100.0f - (int)(temp) * 100.0f)); } if (time.tm_sec % 30 > 0) { |