50 periods

This commit is contained in:
Wolfgang Hottgenroth
2020-03-09 14:32:40 +01:00
parent b7df92d079
commit bfbf686298

View File

@ -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;