diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-02-14 13:51:05 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-02-14 13:51:05 +0100 |
commit | ded87aa27aa892d2911b624862db1808b961ea66 (patch) | |
tree | feba2cbf2a520a95dea4a3c8cbda6829a13e757a /src/app | |
parent | faa10a530fc89815926375ce4cbe13b0330daa76 (diff) |
luxlog: increase buffer size, decrease heartbeat interval
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/luxlog/main.cc | 9 |
1 files changed, 4 insertions, 5 deletions
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); |