This commit is contained in:
Wolfgang Hottgenroth 2021-02-08 12:18:43 +01:00
parent 9685453bf6
commit 95f40065f3
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -75,6 +75,7 @@ void counterSecondTick(void *handle) {
coloredMsg(LOG_GREEN, "cst, buffer %d is done", activeMinuteBuffer);
minuteBuffers[activeMinuteBuffer].s.done = 1;
activeMinuteBuffer += 1;
bufferIdx = 0;
if (activeMinuteBuffer >= NUM_OF_MINUTE_BUFFERS) {
activeMinuteBuffer = 0;
}