From bfbf6862982d1013a086cef9588424e959809a70 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 9 Mar 2020 14:32:40 +0100 Subject: [PATCH] 50 periods --- src/influx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/influx.c b/src/influx.c index 99965ca..615073b 100644 --- a/src/influx.c +++ b/src/influx.c @@ -24,7 +24,7 @@ const char DEFAULT_LOCATION[] = "Essen_DE"; const char LOCATION_KEY[] = "location"; const char *location; -const uint8_t ONE_SECOND_DIVIDER = 50; +const uint32_t ONE_SECOND_DIVIDER = 50; extern uint32_t skipped; @@ -118,7 +118,7 @@ static void influxSendRequest(tInfluxBuffer *influxBuffer) { void influxAddFrequency(uint32_t period, double fRaw, double fSmoothed, double gradient, int valid) { - static uint8_t divider = 0; + static uint32_t divider = 0; static uint32_t summedUpTime = 0; char tmpBuf[256]; struct timespec t;