From ded87aa27aa892d2911b624862db1808b961ea66 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 14 Feb 2020 13:51:05 +0100 Subject: luxlog: increase buffer size, decrease heartbeat interval --- src/app/luxlog/main.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/app') diff --git a/src/app/luxlog/main.cc b/src/app/luxlog/main.cc index ae9a9f9..604b205 100644 --- a/src/app/luxlog/main.cc +++ b/src/app/luxlog/main.cc @@ -9,9 +9,8 @@ #endif #include "driver/max44009.h" -// Alle 10 Minuten ein Messwert -> 144 Werte pro Tag -> 28,4 Tage für 4096 Werte -// Alle 4 Minuten ein Messwert -> 360 Werte pro Tag -> 11,37 Tage für 4096 Werte -__attribute__ ((section(".text"))) uint32_t log[4096]; +// Alle 4 Minuten ein Messwert -> 360 Werte pro Tag -> 22,2 Tage für 8192 Werte +__attribute__ ((section(".text"))) uint32_t log[8000]; uint16_t log_offset = 0; float val = 0; @@ -21,13 +20,13 @@ void loop(void) { if ((log_offset == 0) && (loop_count < 2)) { gpio.led_on(1); - for (uint16_t i = 0; i < 4096; i++) { + for (uint16_t i = 0; i < 8000; i++) { kout << i << " = " << log[i] << endl; } gpio.led_off(1); } - if ( (loop_count % 10) == 0) { + if ( (loop_count % 5) == 0) { gpio.led_on(0); arch.sleep_ms(1); gpio.led_off(0); -- cgit v1.2.3