another fix

This commit is contained in:
2020-07-29 15:19:10 +02:00
parent 9ffea49d71
commit 7d9e4dfda1
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
{ {
"releaseTag": "v1.0.2", "releaseTag": "v1.0.3",
"createReleaseTag": "true", "createReleaseTag": "true",
"releaseName": "heartbeat fix", "releaseName": "heartbeat fix 2",
"description": "heartbeat message fixed" "description": "heartbeat message fixed, raincnt has to be static"
} }

View File

@ -69,7 +69,7 @@ void loopApplication() {
static uint32_t totalCnt = 0; static uint32_t totalCnt = 0;
static uint32_t lastValuesMillis = 0; static uint32_t lastValuesMillis = 0;
static uint32_t lastHeartbeatMillis = 0; static uint32_t lastHeartbeatMillis = 0;
uint32_t rainCnt = 0; static uint32_t rainCnt = 0;
if (currentMillis > (lastValuesMillis + (configBlock.valuesPeriod * 1000))) { if (currentMillis > (lastValuesMillis + (configBlock.valuesPeriod * 1000))) {
lastValuesMillis = currentMillis; lastValuesMillis = currentMillis;