|
@ -52,10 +52,9 @@ class powermeter { |
|
|
/** loop
|
|
|
/** loop
|
|
|
* abfrage der gruppen um die aktuellen Werte (Zähler) zu ermitteln. |
|
|
* abfrage der gruppen um die aktuellen Werte (Zähler) zu ermitteln. |
|
|
*/ |
|
|
*/ |
|
|
void loop(void) { |
|
|
void loop(unsigned long *tsp, bool *doLog) { |
|
|
unsigned long Tsp = millis(); |
|
|
if (*tsp - mPreviousTsp <= 1000) return; // skip when it is to fast
|
|
|
if (Tsp - mPreviousTsp <= 1000) return; // skip when it is to fast
|
|
|
mPreviousTsp = *tsp; |
|
|
mPreviousTsp = Tsp; |
|
|
|
|
|
|
|
|
|
|
|
PowermeterBuffer_t power; |
|
|
PowermeterBuffer_t power; |
|
|
|
|
|
|
|
@ -89,6 +88,7 @@ class powermeter { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
bufferWrite(power, group); |
|
|
bufferWrite(power, group); |
|
|
|
|
|
*doLog = true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|