From aefaa5a15728d81defdc2b16ee52e885abbb2205 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 26 Jun 2018 13:41:04 +0200 Subject: [PATCH] cleanup --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e974f99..f69ecf0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -39,7 +39,7 @@ const char* mqttpassword = PWD_MQTT; constexpr unsigned int postingInterval = 60000; //Uploadintervall in Millisekunden constexpr unsigned int dhcp_interval = 60*60*1000; -int loop_count = 0; +uint32_t loop_count = 0; #define EXTERNAL_POWER 1 @@ -320,8 +320,10 @@ void ICACHE_FLASH_ATTR sendValues() { if (httpCode > 0) { if (httpCode == HTTP_CODE_CREATED) { + #ifdef USERDEBUG httpclient.writeToStream(&Serial); DEBUG_MSG("\n"); + #endif } else { DEBUG_MSG("[HTTP] POST... failed, error: %s\n", httpclient.errorToString(httpCode).c_str()); } @@ -407,7 +409,7 @@ void setup() { previousMillis = millis(); - DEBUG_MSG("ready.\n"); Serial.flush(); + DEBUG_MSG("ready.\n"); //Serial.flush(); } void loop() {